Fix invitation signup redirect (#690)

* Fix invitation signup redirect
This commit is contained in:
Philip Okugbe
2025-01-30 12:54:02 +00:00
committed by GitHub
parent 85159a2c95
commit 4d9fe6f804

View File

@ -63,8 +63,9 @@ function redirectToLogin() {
APP_ROUTE.AUTH.SIGNUP,
APP_ROUTE.AUTH.FORGOT_PASSWORD,
APP_ROUTE.AUTH.PASSWORD_RESET,
"/invites",
];
if (!exemptPaths.some((path) => window.location.pathname === path)) {
if (!exemptPaths.some((path) => window.location.pathname.startsWith(path))) {
window.location.href = APP_ROUTE.AUTH.LOGIN;
}
}