Skip to content

Commit

Permalink
Fix broken slug logic resulting in 404s for v6 (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand authored Dec 17, 2024
1 parent cc68cd2 commit fb83137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/doc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export let loader = async ({ request, params }: Route.LoaderArgs) => {
? `docs/index`
: refParam
? // remove the refParam
`docs/${params["*"].split("/").splice(1).join("/")}`
`docs/${params["*"].replace(`${refParam}/`, "")}`
: `docs/${params["*"]}`;

try {
Expand Down

0 comments on commit fb83137

Please sign in to comment.