aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/components
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-15 14:22:31 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-15 14:22:31 -0800
commitcc74caf9d9b66711f4aab793966c1f8a5663e1b9 (patch)
tree8602af15cd7e36f1ce1f8a5c9f6753b7f108adbe /frontend/src/components
parent9f64d3a18eb92c4845dac38265acecef2931490b (diff)
downloadneko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.tar.gz
neko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.tar.bz2
neko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.zip
Switch to HashRouter to fix page reload issues (NK-hy162w)
Diffstat (limited to 'frontend/src/components')
-rw-r--r--frontend/src/components/FeedList.test.tsx3
-rw-r--r--frontend/src/components/FeedList.tsx2
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 (