diff --git a/web/src/api/client.ts b/web/src/api/client.ts index 19539f2d..bdda0e5f 100644 --- a/web/src/api/client.ts +++ b/web/src/api/client.ts @@ -346,7 +346,7 @@ export const authApi = { }, async logout(): Promise { - const response = await fetch('/api/v1/auth/logout', { + const response = await fetch(withBaseUrl('/api/v1/auth/logout'), { method: 'POST', headers: withCsrf(), }) diff --git a/web/src/shared/components/user-menu.tsx b/web/src/shared/components/user-menu.tsx index d1a9cec0..715b4b21 100644 --- a/web/src/shared/components/user-menu.tsx +++ b/web/src/shared/components/user-menu.tsx @@ -78,7 +78,7 @@ export function UserMenu({ user, triggerClassName }: UserMenuProps) { // Always clear cache and redirect, even if API call fails clearSessionScopedQueries(queryClient) queryClient.setQueryData(['auth', 'me'], null) - window.location.href = '/' + window.location.href = '/skillhub-web/index.html' } }