fix: redirect logout to home page instead of login page
This commit is contained in:
@@ -47,11 +47,11 @@ export default function LogoutPage() {
|
|||||||
localStorage.removeItem('isLoggingOut');
|
localStorage.removeItem('isLoggingOut');
|
||||||
|
|
||||||
// Redirect to login immediately
|
// Redirect to login immediately
|
||||||
window.location.href = '/login';
|
window.location.href = '/';
|
||||||
};
|
};
|
||||||
|
|
||||||
performLogout().catch(() => {
|
performLogout().catch(() => {
|
||||||
window.location.href = '/login';
|
window.location.href = '/';
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user