Skip to content

Commit

Permalink
fix: resolve broken links issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Feb 5, 2022
1 parent 74b5df9 commit ec2610e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-typedoc/src/theme.ts
Expand Up @@ -50,7 +50,7 @@ export class DocusaurusTheme extends MarkdownTheme {
}

getRelativeUrl(url: string) {
const relativeUrl = super.getRelativeUrl(url);
const relativeUrl = super.getRelativeUrl(url).replace(/.md/g, '');
if (path.basename(relativeUrl).startsWith('index')) {
return relativeUrl.replace('index', '');
}
Expand Down

0 comments on commit ec2610e

Please sign in to comment.