diff --git a/frontend/lib/redirect-legacy-routes.ts b/frontend/lib/redirect-legacy-routes.ts index 44eea5f11dfdb97dde88a4f561c6abd9fcb95c38..aebf7269c9d013d32c38c32a506d705717fa30e6 100644 --- a/frontend/lib/redirect-legacy-routes.ts +++ b/frontend/lib/redirect-legacy-routes.ts @@ -4,8 +4,12 @@ export default function redirectLegacyRoutes() { const { hash } = window.location if (hash && hash.startsWith('#/examples/')) { const category = hash.replace('#/examples/', '') - navigate(`category/${category}`) + navigate(`category/${category}`, { + replace: true, + }) } else if (hash === '#/endpoint') { - navigate('endpoint') + navigate('endpoint', { + replace: true, + }) } }