diff --git a/site/source/components/SimulateurOrAssistantPage.tsx b/site/source/components/SimulateurOrAssistantPage.tsx index c698336e3..7f46ce0fd 100644 --- a/site/source/components/SimulateurOrAssistantPage.tsx +++ b/site/source/components/SimulateurOrAssistantPage.tsx @@ -23,9 +23,9 @@ import { TrackChapter } from './ATInternetTracking' export default function SimulateurOrAssistantPage() { const { currentSimulatorData } = useCurrentSimulatorData() - const { pathname, search } = useLocation() + const { pathname } = useLocation() if (!currentSimulatorData) { - throw new Error(`No simulator found with url: ${pathname}?${search}`) + throw new Error(`No simulator found with url: ${pathname}`) } const { meta,