From cc74caf9d9b66711f4aab793966c1f8a5663e1b9 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 15 Feb 2026 14:22:31 -0800 Subject: Switch to HashRouter to fix page reload issues (NK-hy162w) --- frontend/src/components/FeedList.test.tsx | 3 ++- frontend/src/components/FeedList.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'frontend/src/components') 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
Error: {error}
; 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 ( -- cgit v1.2.3