Fix 404 error on /simulateur/

pull/2782/head
Jérémy Rialland 2023-06-22 14:25:52 +02:00 committed by Johan Girod
parent a0ad1f368f
commit 41378522f8
2 changed files with 7 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export default function Landing() {
>
<Button
size="XL"
to={absoluteSitePaths.simulateurs.index}
to={absoluteSitePaths.simulateursEtAssistants}
css={`
white-space: no-wrap;
margin: auto;

View File

@ -81,6 +81,12 @@ export default function Simulateurs() {
)
) : null)}
<Routes>
<Route
index
element={
<Navigate to={absoluteSitePaths.simulateursEtAssistants} replace />
}
/>
{simulatorRoutes}
<Route path="*" element={<Navigate to="/404" replace />} />
</Routes>