aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/App.tsx')
-rw-r--r--frontend/src/App.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 478444c..cc45949 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
-import { BrowserRouter, Routes, Route, Navigate, useLocation } from 'react-router-dom';
+import { HashRouter, Routes, Route, Navigate, useLocation } from 'react-router-dom';
import Login from './components/Login';
import './App.css';
import { apiFetch } from './utils';
@@ -113,10 +113,10 @@ function App() {
localStorage.setItem('neko-font-theme', newFontTheme);
};
- const basename = window.location.pathname.startsWith('/v2') ? '/v2' : '/';
+
return (
- <BrowserRouter basename={basename}>
+ <HashRouter>
<Routes>
<Route path="/login" element={<Login />} />
<Route
@@ -133,7 +133,7 @@ function App() {
}
/>
</Routes>
- </BrowserRouter>
+ </HashRouter>
);
}