]> git.ipfire.org Git - ipfire.org.git/commitdiff
auth: Redirect the user to the page the started the login process from
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Nov 2023 16:42:14 +0000 (16:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Nov 2023 16:42:14 +0000 (16:42 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html

index b251a1762d34cdc51c349361dc32070906a61e07..0105d90efe9949242825c6614550c41efc42eaea 100644 (file)
                                                                                </div>
                                                                        </div>
                                                                {% else %}
-                                                                       <a class="navbar-item is-tab" href="/login">
+                                                                       <a class="navbar-item is-tab" href="/login?next={{ request.path }}">
                                                                                <i class="fas fa-right-to-bracket" title="{{ _("Login") }}"></i>
                                                                        </a>
                                                                {% end %}