feat: fe integration of new endpoint
This commit is contained in:
1 parent
600c937062
commit
0974c84b8d
1 file changed
+4
-1
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user