Skip to content

Commit 2340fd5

Browse files
committed
Fix enhanced markdown url redirection from 404
1 parent 71a329b commit 2340fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/components/EnhancedMarkdown.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function convertMediaWikiLinks(text: string): string {
1717
return text.replace(
1818
/\[\[([^|\]#]+)(?:#([^\]]+))?(?:\|([^\]]+))?\]\]/g,
1919
(_, link, hash, text) => {
20-
const url = `/${link}${hash ? `#${hash}` : ''}`;
20+
const url = `/reference/${link}${hash ? `#${hash}` : ''}`;
2121
return `[${text || link}](${url})`;
2222
}
2323
);

0 commit comments

Comments
 (0)