Fix 404 error on /simulateur/
parent
a0ad1f368f
commit
41378522f8
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue