summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/base.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-07 09:52:15 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-07 09:52:15 +0100
commit4d37a525e8e5df3c13d98ffe534476fd5973d918 (patch)
tree714194fcbf1cd4a8ffc6612ed096c65054e92912 /hyperkitty/templates/base.html
parent60d04970e27e21a622a568b381811ca7256f6db1 (diff)
downloadhyperkitty-4d37a525e8e5df3c13d98ffe534476fd5973d918.tar.gz
hyperkitty-4d37a525e8e5df3c13d98ffe534476fd5973d918.tar.xz
hyperkitty-4d37a525e8e5df3c13d98ffe534476fd5973d918.zip
Keep the redirect url when already on the login page
Diffstat (limited to 'hyperkitty/templates/base.html')
-rw-r--r--hyperkitty/templates/base.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html
index f93d007..424c86a 100644
--- a/hyperkitty/templates/base.html
+++ b/hyperkitty/templates/base.html
@@ -26,8 +26,8 @@
<li><a class="mm_logout" href="{% url user_logout %}">Logout</a></li>
<li><a href="{% url user_profile %}">{{ user.username }}</a></li>
{% else %}
- <li><a class="mm_user" href="{% url user_login %}?next={{request.path}}">Login</a></li>
- <li><a href="{% url user_registration %}?next={{request.path}}"> Sign Up </a></li>
+ <li><a class="mm_user" href="{% url user_login %}?next={{next|default:request.path}}">Login</a></li>
+ <li><a href="{% url user_registration %}?next={{next|default:request.path}}"> Sign Up </a></li>
{% endif %}
</ul>