mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-06 21:45:47 +01:00
🐛 Logout redirect not working
This commit is contained in:
@@ -28,8 +28,6 @@ export const AvatarMenu = () => {
|
||||
|
||||
const Icon = colorScheme === 'dark' ? IconSun : IconMoonStars;
|
||||
|
||||
const signOutRedirectUrl = typeof window !== 'undefined' ? window.location.href : '/';
|
||||
|
||||
return (
|
||||
<>
|
||||
<UnstyledButton>
|
||||
@@ -75,8 +73,8 @@ export const AvatarMenu = () => {
|
||||
color="red"
|
||||
onClick={() =>
|
||||
signOut({
|
||||
callbackUrl: signOutRedirectUrl,
|
||||
})
|
||||
redirect: false,
|
||||
}).then(() => window.location.reload())
|
||||
}
|
||||
>
|
||||
Logout from {sessionData.user.name}
|
||||
|
||||
Reference in New Issue
Block a user