diff --git a/src/routes/PageResistant.tsx b/src/routes/PageResistant.tsx index 2f00fbe..7bf1efa 100644 --- a/src/routes/PageResistant.tsx +++ b/src/routes/PageResistant.tsx @@ -1,4 +1,4 @@ -import { redirect, useNavigate, useParams } from "react-router"; +import { useNavigate, useParams } from "react-router"; import { getResistantPhotoUrl } from "../getResistantPhotoUrl"; import { resistants } from "../resistants"; import { getResistantsPageUrl } from "../getResistantsPageUrl"; @@ -10,7 +10,7 @@ export const PageResistant = () => { const resistant = resistants.find((r) => r.id === idResistant); if (!resistant) { - redirect(getResistantsPageUrl()); + window.location.assign(getResistantsPageUrl()); return <>RĂ©sistant introuvable; }