File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" />
Original file line number Diff line number Diff line change 11import { config } from 'config'
2- import { HashRouter , Route , Routes } from 'react-router-dom'
2+ import { BrowserRouter , Route , Routes } from 'react-router-dom'
33import { FrontPage , TabNames } from './FrontPage/FrontPage'
44import { MissionPage } from './MissionPage/MissionPage'
55import { 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 )
You can’t perform that action at this time.
0 commit comments