Fix & clean login/logout urls

- Use the right slug for kfet root page.
- Redirection url of login and generic login now contains the query
string of the current request.
This commit is contained in:
Aurélien Delobelle 2018-01-17 15:42:55 +01:00 committed by Aurélien Delobelle
parent e56200a569
commit 030a02375c

View file

@ -91,7 +91,7 @@
{% if user.username != 'kfet_genericteam' %}
<li class="divider"></li>
<li>
<a href="#" data-url="{% url "kfet.login.generic" %}" onclick="submit_url(this)">
<a href="#" data-url="{% url "kfet.login.generic" %}?next={{ request.get_full_path|urlencode }}" onclick="submit_url(this)">
{% trans "Ouvrir une session partagée" %}
</a>
</li>
@ -116,7 +116,7 @@
</li>
{% elif not user.is_authenticated %}
<li>
<a href="{% url "account_login" %}?next={{ request.path|urlencode }}" title="{% trans "Connexion" %}">
<a href="{% url "account_login" %}?next={{ request.get_full_path|urlencode }}" title="{% trans "Connexion" %}">
<span>{% trans "Connexion" %}</span><span class="glyphicon glyphicon-log-in"></span>
</a>
</li>