Commit 9739b178 authored by Georgios Dagkakis's avatar Georgios Dagkakis

WebSection: raise redirect to add trailing slash only if request is GET

parent ca54ed7b
......@@ -228,7 +228,7 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
self.REQUEST.set('current_web_section', self)
actual_url = self.REQUEST.get("ACTUAL_URL", "").strip()
if actual_url and actual_url in actual_url and not actual_url.endswith("/"):
if actual_url and self.REQUEST.get("method") == "GET" and not actual_url.endswith("/"):
query_string = self.REQUEST.get("QUERY_STRING", "")
query_str = "?%s" % query_string if query_string else query_string
return self.REQUEST.RESPONSE.redirect(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment