Handle fragments safely on webcheckin logout

This commit is contained in:
Raphael Michel
2026-07-03 12:40:39 +02:00
parent 4f96fff204
commit 9bf752e378
@@ -205,8 +205,8 @@ const CSRF_TOKEN = document.querySelector<HTMLInputElement>('input[name=csrfmidd
function handleAuthError (response: Response): void {
if ([401, 403].includes(response.status)) {
window.location.href = '/control/login?next=' + encodeURIComponent(
window.location.pathname + window.location.search + window.location.hash
)
window.location.pathname + window.location.search
) + window.location.hash
}
}