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>
{% 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>