From d6a977e1496bff71d3af7cee5e4bc6107288e2ef Mon Sep 17 00:00:00 2001 From: ashim-hq Date: Thu, 23 Apr 2026 11:19:31 +0800 Subject: [PATCH] fix: use full page reload after consent to avoid AuthGuard race condition --- apps/web/src/pages/analytics-consent-page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/pages/analytics-consent-page.tsx b/apps/web/src/pages/analytics-consent-page.tsx index 7c00e2f3..0d3bc7b9 100644 --- a/apps/web/src/pages/analytics-consent-page.tsx +++ b/apps/web/src/pages/analytics-consent-page.tsx @@ -30,12 +30,12 @@ export function AnalyticsConsentPage() { const handleAccept = async () => { await acceptAnalytics(); - navigate("/", { replace: true }); + window.location.href = "/"; }; const handleDecline = async () => { await remindLater(); - navigate("/", { replace: true }); + window.location.href = "/"; }; return (