diff --git a/_redirects b/_redirects index 71d8a205..97316a86 100644 --- a/_redirects +++ b/_redirects @@ -82,10 +82,14 @@ /en/main/route/loader https://api.reactrouter.com/v7/types/react_router.LoaderFunction.html /en/main/route/should-revalidate https://api.reactrouter.com/v7/interfaces/react_router.ShouldRevalidateFunction.html +# catchall for remaining v6 docs with lang prefix +/en/* /* + # API reference redirects /reference /en/main/reference # removed `/docs` prefix +/docs /home /docs/en/v6/* /en/v6.3.0/* /docs/* /* diff --git a/app/components/docs-menu/menu.tsx b/app/components/docs-menu/menu.tsx index cbe9c6ef..1ac42835 100644 --- a/app/components/docs-menu/menu.tsx +++ b/app/components/docs-menu/menu.tsx @@ -9,7 +9,13 @@ import { useNavigation } from "~/hooks/use-navigation"; import { useDelayedValue } from "~/hooks/use-delayed-value"; import { useHeaderData } from "../docs-header/use-header-data"; -export function Menu({ menu }: { menu?: MenuDoc[] }) { +export function Menu({ + menu, + changelogHref, +}: { + menu?: MenuDoc[]; + changelogHref?: string; +}) { // github might be down but the menu but the doc could be cached in memory, so // prevent the whole page from blowing up and still render the doc if (menu === undefined) { @@ -22,7 +28,9 @@ export function Menu({ menu }: { menu?: MenuDoc[] }) { return (