Redirect to previous page on login, instead of home page
This commit is contained in:
parent
e4b45ad948
commit
ff42396208
@ -24,7 +24,7 @@
|
||||
{% if user.is_authenticated %}
|
||||
<a class="nav-item nav-link" href="/auth/logout"> Logout: {{ user }} </a>
|
||||
{% else %}
|
||||
<a class="nav-item nav-link" href="/auth/login"> Login </a>
|
||||
<a class="nav-item nav-link" href="/auth/login?next={{ request.get_full_path }}"> Login </a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user