aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-11-26 17:03:24 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-03 14:11:22 +0100
commitd3c6e2a042bf2b2c4bca9ff2ad22983f97503461 (patch)
tree7d5ee1c094bc437c225c9da8ec43de2ee1b762c5 /mediagoblin/templates
parent620e4e1b6e1f58d76b2bedb1d38495662ccd5af3 (diff)
downloadmediagoblin-d3c6e2a042bf2b2c4bca9ff2ad22983f97503461.tar.lz
mediagoblin-d3c6e2a042bf2b2c4bca9ff2ad22983f97503461.tar.xz
mediagoblin-d3c6e2a042bf2b2c4bca9ff2ad22983f97503461.zip
Go back to pre-login URL after loging in
Simply append the current URLĀ (sans querystring) as a ?next= parameter to the login URL. This will always take us back to the original page where we were pre-login. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/base.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html
index e1fa0191..bd3467cb 100644
--- a/mediagoblin/templates/mediagoblin/base.html
+++ b/mediagoblin/templates/mediagoblin/base.html
@@ -65,7 +65,8 @@
{% trans %}Verify your email!{% endtrans %}</a>
{% endif %}
{% else %}
- <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
+ <a href="{{ request.urlgen('mediagoblin.auth.login') }}?next={{
+ request.base_url|urlencode }}">
{% trans %}Log in{% endtrans %}</a>
{% endif %}
</div>