Skip to content

Commit

Permalink
fix(api): keep hash of mdn_url
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 8, 2025
1 parent 71a8459 commit 8e10200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function getPathFromAbsoluteURL(absoluteUrl?: string) {
return absoluteUrl;
}

const slug = url.pathname;
const slug = url.pathname + url.hash;
if (slug.startsWith("/docs/")) {
return `/en-US${slug}`;
}
Expand Down

0 comments on commit 8e10200

Please sign in to comment.