mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
ensure reload (#3447)
This commit is contained in:
parent
87d97d13d5
commit
5b5e1eb7c7
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user