We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f54dbcd commit a52fee4Copy full SHA for a52fee4
app/routes/docs.$lang.ts
@@ -0,0 +1,5 @@
1
+import { redirect, type LoaderFunctionArgs } from "@remix-run/node";
2
+export async function loader({ params }: LoaderFunctionArgs) {
3
+ const { lang, ref } = params;
4
+ return !ref ? redirect(`/docs/${lang}/main`) : null;
5
+}
0 commit comments