diff --git a/app/[...slug]/page.tsx b/app/[...slug]/page.tsx index dd5a4a7..4e6bc7d 100644 --- a/app/[...slug]/page.tsx +++ b/app/[...slug]/page.tsx @@ -79,7 +79,7 @@ function createRelativeLinkWithFilenameOnly( const [path, hash] = href.split('#'); - if (path.endsWith('.md')) { + if (path.endsWith('.md') || path.endsWith('.mdx')) { finalHref = `./${path}${hash ? `#${hash.toLowerCase()}` : ''}`; }