We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f740341 + 2b8f650 commit cf7739aCopy full SHA for cf7739a
1 file changed
app/[...slug]/page.tsx
@@ -79,7 +79,7 @@ function createRelativeLinkWithFilenameOnly(
79
80
const [path, hash] = href.split('#');
81
82
- if (path.endsWith('.md')) {
+ if (path.endsWith('.md') || path.endsWith('.mdx')) {
83
finalHref = `./${path}${hash ? `#${hash.toLowerCase()}` : ''}`;
84
}
85
0 commit comments