Add ?next= when trying to add a comment when not logged in

This commit is contained in:
Rodney Ewing 2013-08-08 11:07:12 -07:00
parent 202d951c3d
commit 8fc57eaaa6

View File

@ -90,7 +90,8 @@
{% if app_config['allow_comments'] %}
<a
{% if not request.user %}
href="{{ request.urlgen('mediagoblin.auth.login') }}"
href="{{ request.urlgen('mediagoblin.auth.login') }}?next={{
request.base_url|urlencode }}"
{% endif %}
class="button_action" id="button_addcomment" title="Add a comment">
{% trans %}Add a comment{% endtrans %}