From 23947045c011e84149bc1b9d48805e57bb0bb3ba Mon Sep 17 00:00:00 2001
From: Adam Mathes <adam@adammathes.com>
Date: Sat, 14 Feb 2026 09:38:31 -0800
Subject: routing: make new UI default at / and move legacy UI to /v1/ (fixing
 NK-mgmn5m, NK-p89hyt)

---
 frontend/src/App.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'frontend/src/App.tsx')

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
-- 
cgit v1.2.3

