diff --git a/src/pretix/static/pretixpresale/js/csrfcookieretry.js b/src/pretix/static/pretixpresale/js/csrfcookieretry.js index e6bc3c1c9f..f1447cd927 100644 --- a/src/pretix/static/pretixpresale/js/csrfcookieretry.js +++ b/src/pretix/static/pretixpresale/js/csrfcookieretry.js @@ -9,5 +9,7 @@ document.addEventListener("DOMContentLoaded", () => { if (!hasCookie && !sessionStorage.getItem(RELOAD_FLAG)) { sessionStorage.setItem(RELOAD_FLAG, "1"); location.reload(); + } else if (hasCookie && sessionStorage.getItem(RELOAD_FLAG)) { + sessionStorage.removeItem(RELOAD_FLAG); } });