1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #8306: Redirect user to previous page after login

This commit is contained in:
jeremystretch
2022-01-10 14:44:25 -05:00
parent 076ca46ab4
commit 9152ba72f1
2 changed files with 2 additions and 1 deletions

View File

@@ -38,7 +38,7 @@
</div>
{% else %}
<div class="btn-group">
<a class="btn btn-primary ws-nowrap" type="button" href="{% url 'login' %}">
<a class="btn btn-primary ws-nowrap" type="button" href="{% url 'login' %}?next={{ request.path }}">
<i class="mdi mdi-login-variant"></i> Log In
</a>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown">