Skip to content

Commit 8f597e0

Browse files
committed
use better router for extensions
1 parent b8fb91e commit 8f597e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/AppRoutes.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BrowserRouter, Route, Routes } from 'react-router-dom'
1+
import { HashRouter, Route, Routes } from 'react-router-dom'
22
import { AppLayout } from 'src/components/Layout/AppLayout'
33
import { SettingsLayout } from 'src/components/Layout/SettingsLayout'
44
import { lazyImport } from 'src/utils/lazyImport'
@@ -11,7 +11,7 @@ const { TopicSettings } = lazyImport(() => import('src/features/settings'), 'Top
1111

1212
export const AppRoutes = () => {
1313
return (
14-
<BrowserRouter>
14+
<HashRouter>
1515
<Routes>
1616
<Route element={<AppLayout />}>
1717
<Route path="/settings" element={<SettingsLayout />}>
@@ -23,6 +23,6 @@ export const AppRoutes = () => {
2323
<Route path="*" index element={<App />} />
2424
</Route>
2525
</Routes>
26-
</BrowserRouter>
26+
</HashRouter>
2727
)
2828
}

0 commit comments

Comments
 (0)