From a494ceca53c2b288e00bc4d5ba9663873c956fc8 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Thu, 12 Dec 2024 11:11:20 -0800 Subject: [PATCH] ensure reload --- web/src/app/auth/verify-email/Verify.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/app/auth/verify-email/Verify.tsx b/web/src/app/auth/verify-email/Verify.tsx index 7456231cc2b..3da421e6c1d 100644 --- a/web/src/app/auth/verify-email/Verify.tsx +++ b/web/src/app/auth/verify-email/Verify.tsx @@ -32,7 +32,10 @@ export function Verify({ user }: { user: User | null }) { }); if (response.ok) { - router.push("/"); + // Use window.location.href to force a full page reload, + // ensuring app re-initializes with the new state (including + // server-side provider values) + window.location.href = "/"; } else { const errorDetail = (await response.json()).detail; setError(