Commit dbcabe55 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Georgios Dagkakis

fixup! WebSection: Fix RJS website rendering when trailing / in the URL is missing

parent b0dc579e
......@@ -246,8 +246,9 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
self.REQUEST[self.web_section_key] = self.getPhysicalPath()
self.REQUEST.set('current_web_section', self)
# The URL to access the section should have the trailing slash.
actual_url = self.REQUEST.get("ACTUAL_URL", "").strip()
if actual_url and self.REQUEST.get("method") == "GET" and not actual_url.endswith("/"):
if actual_url and self.REQUEST.get("method") == "GET" and not actual_url.endswith("/") and self.REQUEST.get('PUBLISHED') == self:
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