bugfix(router): redirect to /workspaces if user is authenticated, otherwise redirect to /auth route + rename /login -> /auth

This commit is contained in:
2026-03-13 02:47:36 +08:00
parent 7e378a92f8
commit 3948505a30
5 changed files with 13 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ export function Navbar() {
setUser(null)
setShowLogoutModal(false)
toast.success(t.logoutToast || "Successfully logged out!")
navigate("/login")
navigate("/auth")
}
}
@@ -167,7 +167,7 @@ export function Navbar() {
<>
<SettingsMenu />
<Button
onClick={() => navigate("/login")}
onClick={() => navigate("/auth")}
className="bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700"
>
{t.login?.signIn || "Login"}