From b6dc3fc3cf92602c4714346d736cca90dbd50337 Mon Sep 17 00:00:00 2001 From: Huub van der Voort Date: Wed, 7 Jan 2026 15:03:39 +0100 Subject: [PATCH] fix: handle url fragments for redirects Signed-off-by: Huub van der Voort --- web/templates/login.html | 9 +++++++++ web/templates/password.html | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/web/templates/login.html b/web/templates/login.html index f432dd00..69eec61f 100644 --- a/web/templates/login.html +++ b/web/templates/login.html @@ -16,4 +16,13 @@ + + {{ template "footer.html" . }} diff --git a/web/templates/password.html b/web/templates/password.html index 3e1c2ed2..64f61261 100644 --- a/web/templates/password.html +++ b/web/templates/password.html @@ -38,6 +38,11 @@ var el = document.querySelector('#submit-login'); el.setAttribute('disabled', 'disabled'); }; + + if (window.location.hash) { + var form = document.querySelector('form'); + form.action = (form.action || '') + window.location.hash; + } {{ template "footer.html" . }}