From 092e769641760ce8c52bbd2c3b72333a5d21d116 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 4 Jun 2026 04:22:20 +0200 Subject: [PATCH] fix: 401 redirect uses /app/login instead of /login --- spa/src/lib/api/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/src/lib/api/client.ts b/spa/src/lib/api/client.ts index 8a4f457..a4ea48f 100644 --- a/spa/src/lib/api/client.ts +++ b/spa/src/lib/api/client.ts @@ -56,7 +56,7 @@ async function request( if (!res.ok) { if (res.status === 401) { clearAuth() - window.location.href = "/login" + window.location.href = "/app/login" } throw new ApiError(res.status, await res.text()) }