Redirect /simulateur/* to 404
parent
7bd8dab6a5
commit
1292785b08
|
@ -5,7 +5,7 @@ import image from '@/assets/images/road-sign.svg'
|
|||
import PageHeader from '@/components/PageHeader'
|
||||
import Meta from '@/components/utils/Meta'
|
||||
import { Button } from '@/design-system/buttons'
|
||||
import { Container } from '@/design-system/layout'
|
||||
import { Container, Spacing } from '@/design-system/layout'
|
||||
|
||||
export default function Page404() {
|
||||
const { t } = useTranslation()
|
||||
|
@ -35,6 +35,7 @@ export default function Page404() {
|
|||
<Trans i18nKey="404.action">Revenir en lieu sûr</Trans>
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<Spacing xxl />
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -81,13 +81,8 @@ export default function Simulateurs() {
|
|||
)
|
||||
) : null)}
|
||||
<Routes>
|
||||
<Route
|
||||
path="*"
|
||||
element={
|
||||
<Navigate to={absoluteSitePaths.simulateursEtAssistants} replace />
|
||||
}
|
||||
/>
|
||||
{simulatorRoutes}
|
||||
<Route path="*" element={<Navigate to="/404" replace />} />
|
||||
</Routes>
|
||||
</>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue