Skip to content

Commit

Permalink
support default pages deployment url
Browse files Browse the repository at this point in the history
  • Loading branch information
Jish2 committed Nov 17, 2023
1 parent 878ac31 commit 00b49e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/providers/shared-auth.provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export function SharedAuthProvider({ children }: { children: ReactNode }) {
console.log("reset!");
const [status, setStatus] = useState<Status>("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");
}

Expand Down

0 comments on commit 00b49e5

Please sign in to comment.