diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-10-03 14:01:13 +0200 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-10-03 14:01:13 +0200 |
commit | 05788ef450cd63da4009cea1825323e10e572e43 (patch) | |
tree | 6c0d8abb538a2d8674fd2e335c76ca3153d697a2 /mediagoblin/tools/pagination.py | |
parent | 4d7a93a49303344830021bab5a741148b1adb7c3 (diff) | |
download | mediagoblin-05788ef450cd63da4009cea1825323e10e572e43.tar.lz mediagoblin-05788ef450cd63da4009cea1825323e10e572e43.tar.xz mediagoblin-05788ef450cd63da4009cea1825323e10e572e43.zip |
i592: Use full path in various places
When running mediagoblin in a sub path on a web server,
most things inside mediagoblin need the "inside path", but
when generating URLs for the webbrowser, full paths are
needed.
urlgen and routes already do that.
Some (mostly pagination and login) need the URL of the
current page. They used request.path_info. But this is the
"inside" path, not the full.
So now there is request.full_path and its used in various
places.
Diffstat (limited to 'mediagoblin/tools/pagination.py')
-rw-r--r-- | mediagoblin/tools/pagination.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tools/pagination.py b/mediagoblin/tools/pagination.py index 859b60fb..3ea96e6d 100644 --- a/mediagoblin/tools/pagination.py +++ b/mediagoblin/tools/pagination.py @@ -106,4 +106,4 @@ class Pagination(object): This is a nice wrapper around get_page_url_explicit() """ return self.get_page_url_explicit( - request.path_info, request.GET, page_no) + request.full_path, request.GET, page_no) |