mirror of
https://github.com/pretix/pretix.git
synced 2026-08-11 10:57:00 +00:00
Improve handling of logout during asynchronous tasks (Z#23238978) (#6341)
* Handle logout during async task requests properly * Handle fragments safely on webcheckin logout * Remove unnecessary comment * Revert hash change
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user