redirect user back to where they came from after logging in

This commit is contained in:
rimu 2024-02-28 22:03:26 +13:00
parent fffb58fb07
commit eeb80ad851

View file

@ -49,7 +49,7 @@
<p><a href="{{ url_for('auth.validation_required') }}">{{ _('Verify your email address to comment') }}</a></p>
{% endif %}
{% else %}
<p><a href="{{ url_for('auth.login') }}">{{ _('Log in to comment') }}</a></p>
<p><a href="{{ url_for('auth.login', next='/post/' + str(post.id)) }}">{{ _('Log in to comment') }}</a></p>
{% endif %}
{% else %}
<p>{{ _('Comments are disabled.') }}</p>