From 1d7c935a9e9c61f364d193ef76b9d991d87eb736 Mon Sep 17 00:00:00 2001 From: Lukas Bockstaller Date: Fri, 3 Jul 2026 13:33:45 +0200 Subject: [PATCH] Update src/pretix/static/pretixpresale/js/csrfcookieretry.js Co-authored-by: Richard Schreiber --- src/pretix/static/pretixpresale/js/csrfcookieretry.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/static/pretixpresale/js/csrfcookieretry.js b/src/pretix/static/pretixpresale/js/csrfcookieretry.js index e6bc3c1c9..f1447cd92 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); } });