diff --git a/src/api/viewService.ts b/src/api/viewService.ts index cf863b6..4ad1a99 100644 --- a/src/api/viewService.ts +++ b/src/api/viewService.ts @@ -22,7 +22,7 @@ async function request(method: string, path: string, body?: unknown): Promise if (res.status === 401) { localStorage.removeItem(TOKEN_KEY); localStorage.removeItem("zino_user"); - window.location.href = "/login"; + window.location.href = `${import.meta.env.BASE_URL}login`; throw new Error("Unauthorized"); } if (!res.ok) {