mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-12 14:12:53 +02:00
ensure reload (#3447)
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user