Commit 551fb87c authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'fix/logout_path_login_bug' into 'master'

Fix #191

Closes #191

See merge request !193
parents 2f4799ec a7113d9c
......@@ -72,7 +72,7 @@
{% if not user.is_authenticated %}
<div class="btn-group open" id="account-menu">
<a class="btn btn-default" href="{% url 'login' %}?next={{ request.path }}"><i class="fa fa-user"></i>{% trans "Login" %}</a>
<a class="btn btn-default" href="{% url 'login' %}{% if request.path != '/logout/' %}?next={{ request.path }}{% endif %}"><i class="fa fa-user"></i>{% trans "Login" %}</a>
{% else %}
<div class="btn-group" id="account-menu">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment