changeset 1099:ea0d41ef3719

server: return absolute page in checkRedirection
author Goffi <goffi@goffi.org>
date Fri, 01 Jun 2018 16:00:48 +0200
parents 01e95ec9df9e
children 5976dcd42591
files src/server/server.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/server.py	Fri Jun 01 15:09:19 2018 +0200
+++ b/src/server/server.py	Fri Jun 01 16:00:48 2018 +0200
@@ -1892,7 +1892,9 @@
             test_url = u'/' + u'/'.join(url_parts[:idx])
             if test_url in inv_redirections:
                 rem_url = url_parts[idx:]
-                return u'/'.join([inv_redirections[test_url]] + rem_url)
+                return os.path.join(
+                    u'/',
+                    u'/'.join([inv_redirections[test_url]] + rem_url))
         return url
 
     ## Sessions ##