Skip to content

Commit

Permalink
Appending slash to slug for terms redirect.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyface committed Oct 15, 2022
1 parent 74d34ba commit 21231ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termsandconditions/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def redirect_to_terms_accept(current_path="/", slug="default"):
"""Redirect the user to the terms and conditions accept page."""
redirect_url_parts = list(urlparse(ACCEPT_TERMS_PATH))
if slug != "default":
redirect_url_parts[2] += slug
redirect_url_parts[2] += slug + "/"
querystring = QueryDict(redirect_url_parts[4], mutable=True)
querystring[TERMS_RETURNTO_PARAM] = current_path
redirect_url_parts[4] = querystring.urlencode(safe="/")
Expand Down

0 comments on commit 21231ba

Please sign in to comment.