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