Skip to content

Commit 5a63036

Browse files
committed
Revert hash routing
1 parent 16ef885 commit 5a63036

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

frontend/src/components/Header/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ export const Header = ({ page }: { page: string }) => {
8787
<Button
8888
variant="ghost_icon"
8989
onClick={() => {
90-
window.location.href = `${config.FRONTEND_BASE_ROUTE}/`
90+
navigate(`${config.FRONTEND_BASE_ROUTE}/`)
9191
}}
9292
>
9393
<Icon name={Icons.Platform} size={24} title="Change Asset" />
9494
</Button>
9595
<Button
9696
variant="ghost_icon"
9797
onClick={() => {
98-
window.location.href = `${config.FRONTEND_BASE_ROUTE}/info`
98+
navigate(`${config.FRONTEND_BASE_ROUTE}/info`)
9999
}}
100100
>
101101
<Icon name={Icons.Info} size={24} title="Info Page" />

frontend/src/components/Pages/FlotillaSite.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { config } from 'config'
2-
import { HashRouter, Route, Routes } from 'react-router-dom'
2+
import { BrowserRouter, Route, Routes } from 'react-router-dom'
33
import { FrontPage, TabNames } from './FrontPage/FrontPage'
44
import { MissionPage } from './MissionPage/MissionPage'
55
import { RobotPage } from './RobotPage/RobotPage'
@@ -22,7 +22,7 @@ export const FlotillaSite = () => {
2222
return (
2323
<>
2424
<APIUpdater>
25-
<HashRouter>
25+
<BrowserRouter>
2626
<Routes>
2727
<Route path={`${config.FRONTEND_BASE_ROUTE}/`} element={<AssetSelectionPage />} />
2828
<Route
@@ -59,7 +59,7 @@ export const FlotillaSite = () => {
5959
<Route path={`${config.FRONTEND_BASE_ROUTE}/robots`} element={<RobotStatusPage />} />
6060
<Route path={`${config.FRONTEND_BASE_ROUTE}/info`} element={<InfoPage />} />
6161
</Routes>
62-
</HashRouter>
62+
</BrowserRouter>
6363
</APIUpdater>
6464
</>
6565
)

0 commit comments

Comments
 (0)