Skip to content

Commit

Permalink
fix: headernav linking to custom page should check if translation is …
Browse files Browse the repository at this point in the history
…enabled
  • Loading branch information
endiliey committed Sep 2, 2018
1 parent e613725 commit f1daddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/nav/HeaderNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f1daddb

Please sign in to comment.