fix: 401 redirect uses /app/login instead of /login
Some checks failed
CI / Check / Test (push) Has been cancelled
Some checks failed
CI / Check / Test (push) Has been cancelled
This commit is contained in:
@@ -56,7 +56,7 @@ async function request<T = void>(
|
|||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
if (res.status === 401) {
|
if (res.status === 401) {
|
||||||
clearAuth()
|
clearAuth()
|
||||||
window.location.href = "/login"
|
window.location.href = "/app/login"
|
||||||
}
|
}
|
||||||
throw new ApiError(res.status, await res.text())
|
throw new ApiError(res.status, await res.text())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user