mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 00:47:03 +02:00
fix: headernav linking to custom page should check if translation is enabled
This commit is contained in:
parent
e613725a25
commit
f1daddb5f9
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ class HeaderNav extends React.Component {
|
|||
if (fs.existsSync(`${CWD}/pages/en/${link.page}.js`)) {
|
||||
href =
|
||||
siteConfig.baseUrl +
|
||||
(language ? `${language}/` : '') +
|
||||
(env.translation.enabled ? `${language}/` : '') +
|
||||
link.page +
|
||||
extension;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue