Redirect /simulateur/* to 404

pull/2782/head
Jérémy Rialland 2023-06-21 18:37:50 +02:00 committed by Johan Girod
parent 7bd8dab6a5
commit 1292785b08
2 changed files with 3 additions and 7 deletions

View File

@ -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>
)
}

View File

@ -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>
</>
)