Updated back-office "oid" route
authorThierry Florac <thierry.florac@onf.fr>
Mon, 18 Feb 2019 10:06:58 +0100
changeset 424 71e8fde38f70
parent 423 a01f206f7e04
child 425 afab606ea4d9
Updated back-office "oid" route
src/pyams_default_theme/routes.py
--- a/src/pyams_default_theme/routes.py	Thu Feb 14 17:40:00 2019 +0100
+++ b/src/pyams_default_theme/routes.py	Mon Feb 18 10:06:58 2019 +0100
@@ -51,7 +51,7 @@
             target = None
         if target is not None:
             if view_name:  # back-office access => last version
-                location = absolute_url(target, request, '/'.join(view_name))
+                location = absolute_url(target, request, view_name)
             else:
                 location = canonical_url(target, request)
             if location == request.url: