From 00b49e560ac8bb0b4f9006b534895bec1f29ec26 Mon Sep 17 00:00:00 2001 From: Jish2 Date: Fri, 17 Nov 2023 08:18:12 -0600 Subject: [PATCH] support default pages deployment url --- client/src/providers/shared-auth.provider.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/providers/shared-auth.provider.tsx b/client/src/providers/shared-auth.provider.tsx index ad83cc0..3ab0bba 100644 --- a/client/src/providers/shared-auth.provider.tsx +++ b/client/src/providers/shared-auth.provider.tsx @@ -25,7 +25,11 @@ export function SharedAuthProvider({ children }: { children: ReactNode }) { console.log("reset!"); const [status, setStatus] = useState("none"); - if (typeof window !== "undefined" && !router.pathname.startsWith("/login")) { + if ( + typeof window !== "undefined" && + (!router.pathname.startsWith("/login") || + !router.pathname.startsWith("/resume-book/login")) + ) { if (status === "none") router.push("/login"); }