[pyramid] use pyramid.request `path_info` property instead of `path` 3.24
authorSamuel Trégouët <samuel.tregouet@logilab.fr>
Wed, 18 Jan 2017 16:50:48 +0100
branch3.24
changeset 11925 b75fc687c730
parent 11924 4c949c28ce59
child 11926 2deb9f6cbb7b
[pyramid] use pyramid.request `path_info` property instead of `path` path is concatenation of SCRIPT_NAME and PATH_INFO we just need PATH_INFO here
cubicweb/pyramid/core.py
--- a/cubicweb/pyramid/core.py	Fri Jan 13 11:36:51 2017 +0100
+++ b/cubicweb/pyramid/core.py	Wed Jan 18 16:50:48 2017 +0100
@@ -161,7 +161,7 @@
         return self._request.scheme == 'https'
 
     def relative_path(self, includeparams=True):
-        path = self._request.path[1:]
+        path = self._request.path_info[1:]
         if includeparams and self._request.query_string:
             return '%s?%s' % (path, self._request.query_string)
         return path