mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-06 19:37:52 +02:00
Fix correct linking when setting defaultVersionShown to non-latest version (#894)
This commit is contained in:
parent
3f896c8e18
commit
8f9f7a5602
3 changed files with 5 additions and 2 deletions
|
@ -57,7 +57,7 @@ function mdToHtmlify(oldContent, mdToHtml, metadata) {
|
|||
htmlLink = htmlLink.replace('/en/', `/${metadata.language}/`);
|
||||
htmlLink = htmlLink.replace(
|
||||
'/VERSION/',
|
||||
metadata.version && metadata.version !== env.versioning.defaultVersion
|
||||
metadata.version && metadata.version !== env.versioning.latestVersion
|
||||
? `/${metadata.version}/`
|
||||
: '/'
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue