Redirect back to current page when login button is clicked

This commit is contained in:
Chase Sterling 2016-07-09 00:47:46 -04:00
parent aa0a8a2aa8
commit cb8c6fdaba

View file

@ -72,7 +72,7 @@
</ul>
</li>
{% else %}
<li><a href="{{ url_for('auth.login') }}"><i class="fa fa-user"></i> &nbsp;Login</a></li>
<li><a href="{{ url_for('auth.login', next=request.path) }}"><i class="fa fa-user"></i> &nbsp;Login</a></li>
{% if config.REGISTRATION_ENABLED and 'auth.local' in config.MODULES %}
<li><a href="{{ url_for('auth.local.register') }}"><i class="fa fa-users"></i> &nbsp;Register</a></li>
{% endif %}