fix: 401 redirect uses /app/login instead of /login
Some checks failed
CI / Check / Test (push) Has been cancelled

This commit is contained in:
2026-06-04 04:22:20 +02:00
parent b20d23fbb3
commit 092e769641

View File

@@ -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())
} }