Skip to content

Commit

Permalink
Fix redirect for non-v7
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand committed Dec 17, 2024
1 parent fb83137 commit 5831765
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/pages/docs-index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ export function loader({ request }: Route.LoaderArgs) {
url.pathname += "/";
}

return redirect(url.pathname + "home");
if (url.pathname.startsWith("7")) {
return redirect(url.pathname + "home");
} else {
return redirect("/en" + url.pathname);
}
}

0 comments on commit 5831765

Please sign in to comment.