diff --git a/src/components/layout/header/AvatarMenu.tsx b/src/components/layout/header/AvatarMenu.tsx index d21b3edb6..d6e08db33 100644 --- a/src/components/layout/header/AvatarMenu.tsx +++ b/src/components/layout/header/AvatarMenu.tsx @@ -28,8 +28,6 @@ export const AvatarMenu = () => { const Icon = colorScheme === 'dark' ? IconSun : IconMoonStars; - const signOutRedirectUrl = typeof window !== 'undefined' ? window.location.href : '/'; - return ( <> @@ -75,8 +73,8 @@ export const AvatarMenu = () => { color="red" onClick={() => signOut({ - callbackUrl: signOutRedirectUrl, - }) + redirect: false, + }).then(() => window.location.reload()) } > Logout from {sessionData.user.name}