aboutsummaryrefslogtreecommitdiffstats
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/App.tsx4
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