# HG changeset patch # User Samuel Trégouët # Date 1484754648 -3600 # Node ID b75fc687c730673d11b844e62fb96916e4989380 # Parent 4c949c28ce599bd5cdcd67fc1f03b842f5f27c73 [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 diff -r 4c949c28ce59 -r b75fc687c730 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