diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 09:38:31 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 09:38:31 -0800 |
| commit | 23947045c011e84149bc1b9d48805e57bb0bb3ba (patch) | |
| tree | a4eb5015a5456a0ac93a792f59270675beccabd5 /frontend/src | |
| parent | 22eacbaf2712aee2a1c448a0e53f241f8c7bd255 (diff) | |
| download | neko-23947045c011e84149bc1b9d48805e57bb0bb3ba.tar.gz neko-23947045c011e84149bc1b9d48805e57bb0bb3ba.tar.bz2 neko-23947045c011e84149bc1b9d48805e57bb0bb3ba.zip | |
routing: make new UI default at / and move legacy UI to /v1/ (fixing NK-mgmn5m, NK-p89hyt)
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/App.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 7943f60..1c023c4 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -106,8 +106,10 @@ function App() { localStorage.setItem('neko-theme', newTheme); }; + const basename = window.location.pathname.startsWith('/v2') ? '/v2' : '/'; + return ( - <BrowserRouter basename="/v2"> + <BrowserRouter basename={basename}> <Routes> <Route path="/login" element={<Login />} /> <Route |
