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/decorators.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/decorators.py')
-rw-r--r-- | mediagoblin/decorators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/decorators.py b/mediagoblin/decorators.py index 19e22bca..6431d67e 100644 --- a/mediagoblin/decorators.py +++ b/mediagoblin/decorators.py @@ -45,7 +45,7 @@ def require_active_login(controller): return exc.HTTPFound( location="%s?next=%s" % ( request.urlgen("mediagoblin.auth.login"), - request.path_info)) + request.full_path)) return controller(request, *args, **kwargs) |