From 21231babbb998e30f1cfa5c22cc20bc670c8a2f2 Mon Sep 17 00:00:00 2001 From: "Tim L. White" Date: Sat, 15 Oct 2022 14:34:13 +0000 Subject: [PATCH] Appending slash to slug for terms redirect. --- termsandconditions/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termsandconditions/pipeline.py b/termsandconditions/pipeline.py index 1a398787..902e605e 100644 --- a/termsandconditions/pipeline.py +++ b/termsandconditions/pipeline.py @@ -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="/")