changeset 1041:688b52897ba0

pages: check redirections on getURLByNames
author Goffi <goffi@goffi.org>
date Wed, 24 Jan 2018 09:58:00 +0100
parents 90b11cd6f28f
children f7d45c989c05
files src/server/pages.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/pages.py	Wed Jan 24 09:58:00 2018 +0100
+++ b/src/server/pages.py	Wed Jan 24 09:58:00 2018 +0100
@@ -519,7 +519,7 @@
                 path.append(sub_path)
                 if page_args:
                     path.extend([quote(a) for a in page_args])
-        return u'/'.join(path)
+        return self.host.checkRedirection(u'/'.join(path))
 
     def getChildWithDefault(self, path, request):
         # we handle children ourselves