From 8e102006f99cbee4a23291c26c05de88815d19cc Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 8 Jan 2025 17:00:35 +0100 Subject: [PATCH] fix(api): keep hash of mdn_url --- api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/index.ts b/api/index.ts index 14d715c..a5ef522 100644 --- a/api/index.ts +++ b/api/index.ts @@ -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}`; }