Fix: Client Redirect
This commit is contained in:
1 parent
f9653888b1
commit
e25669ac6a
1 file changed
+1
-4
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user