diff options
Diffstat (limited to 'frontend/src/components')
| -rw-r--r-- | frontend/src/components/FeedList.test.tsx | 3 | ||||
| -rw-r--r-- | frontend/src/components/FeedList.tsx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/components/FeedList.test.tsx b/frontend/src/components/FeedList.test.tsx index d3d3a57..d4e72cc 100644 --- a/frontend/src/components/FeedList.test.tsx +++ b/frontend/src/components/FeedList.test.tsx @@ -202,8 +202,9 @@ describe('FeedList Component', () => { await waitFor(() => { expect(global.fetch).toHaveBeenCalledWith('/api/logout', expect.any(Object)); - expect(window.location.href).toContain('/v2/login'); + expect(window.location.href).toContain('/v2/#/login'); }); + // @ts-expect-error - restoring window.location window.location = originalLocation; }); diff --git a/frontend/src/components/FeedList.tsx b/frontend/src/components/FeedList.tsx index 556ce6e..ce83333 100644 --- a/frontend/src/components/FeedList.tsx +++ b/frontend/src/components/FeedList.tsx @@ -111,7 +111,7 @@ export default function FeedList({ if (error) return <div className="feed-list-error">Error: {error}</div>; const handleLogout = () => { - apiFetch('/api/logout', { method: 'POST' }).then(() => (window.location.href = '/v2/login')); + apiFetch('/api/logout', { method: 'POST' }).then(() => (window.location.href = '/v2/#/login')); }; return ( |
