diff --git a/client/src/Utils/ApiClient.ts b/client/src/Utils/ApiClient.ts index b18f2dfbc..0fef9b4a0 100644 --- a/client/src/Utils/ApiClient.ts +++ b/client/src/Utils/ApiClient.ts @@ -61,7 +61,10 @@ export const initApiClient = (store: StoreType): void => { } if (error.response?.status === 401) { - if (window.location.pathname !== "/login") { + if ( + window.location.pathname !== "/login" && + !window.location.pathname.startsWith("/status/public") + ) { window.location.href = "/login"; } }