diff --git a/libs/auth/src/lib/pages/LoginPage.tsx b/libs/auth/src/lib/pages/LoginPage.tsx index 5c934cd39..a74939334 100644 --- a/libs/auth/src/lib/pages/LoginPage.tsx +++ b/libs/auth/src/lib/pages/LoginPage.tsx @@ -54,11 +54,7 @@ export function LoginPage() { const [profileTrigger] = useApiMutation<{ profile: CurrentProfile | null }>(); const handleBack = () => { - if (window.history.length > 1) { - navigate(-1); - } else { - navigate("/"); - } + navigate("/"); }; // Built inside the component (not module scope) so validation messages