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>
This commit is contained in:
@@ -65,7 +65,8 @@
|
|||||||
{% trans %}Verify your email!{% endtrans %}</a>
|
{% trans %}Verify your email!{% endtrans %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% 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>
|
{% trans %}Log in{% endtrans %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user