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:
parent
e56200a569
commit
030a02375c
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue