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.
This commit is contained in:
Elrond
2011-10-03 14:01:13 +02:00
parent 4d7a93a493
commit 05788ef450
4 changed files with 14 additions and 3 deletions

View File

@@ -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)