[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
--- 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