Modifies the login link to redirect the user to the current page after authentication.

This commit is contained in:
Johnny 2018-10-29 04:02:30 +00:00
parent d6879c3cef
commit de14d8621f

View file

@ -72,7 +72,7 @@ folder and edit it to add/remove links to the menu.
</li>
{% else %}
<li>
<a class="nav-link" href="{% url 'login' %}">Log In</a>
<a class="nav-link" href="{% url 'login' %}?next={{ request.path }}">Log In</a>
</li>
<li>
<a class="nav-link" href="{% url 'register' %}">Register</a>