Skip to content

The agent that grows with you

fix(dashboard): include BASE path in logout redirect to /login

liuhao1024aff64c886af3
diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts
index 024a70947ca..bbbf311e699 100644
--- a/web/src/lib/api.ts
+++ b/web/src/lib/api.ts
@@ -438,7 +438,7 @@ export const api = {
// /auth/logout returns 302 → /login. Follow that with a full-page
// navigation rather than letting fetch() opaquely consume the
// redirect — the SPA needs to leave the protected area.
- window.location.assign("/login");
+ window.location.assign(`${BASE}/login`);
return r;
}),
getSessions: (