From 28ae9f393d416a143833e28287df823fa44ebe05 Mon Sep 17 00:00:00 2001 From: estifanos Date: Mon, 17 Aug 2026 07:13:34 +0000 Subject: [PATCH] fixes --- apps/portal/src/app/router.tsx | 2 +- libs/auth/src/lib/components/ProtectedRoute.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/portal/src/app/router.tsx b/apps/portal/src/app/router.tsx index 7ab630b08..b8f2d26b3 100644 --- a/apps/portal/src/app/router.tsx +++ b/apps/portal/src/app/router.tsx @@ -403,6 +403,6 @@ export const router = createBrowserRouter([ }, // A typo'd URL should not maroon a signed-in user on the marketing page — - // ProtectedRoute sends anonymous visitors on to /login exactly as before. + // ProtectedRoute sends anonymous visitors on to / (landing) instead. { path: "*", element: }, ]); diff --git a/libs/auth/src/lib/components/ProtectedRoute.tsx b/libs/auth/src/lib/components/ProtectedRoute.tsx index 5321a5889..77d9dd539 100644 --- a/libs/auth/src/lib/components/ProtectedRoute.tsx +++ b/libs/auth/src/lib/components/ProtectedRoute.tsx @@ -7,7 +7,7 @@ interface ProtectedRouteProps { loginPath?: string; } -export function ProtectedRoute({ children, loginPath = '/login' }: ProtectedRouteProps) { +export function ProtectedRoute({ children, loginPath = '/' }: ProtectedRouteProps) { const location = useLocation(); const token = useAuthToken();