Skip to content

Commit

Permalink
Only builds redirect pages if the current file is an english doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnakagawa committed Oct 19, 2017
1 parent b9a0c36 commit 713f7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function execute() {
writeFileAndCreateFolder(targetFile, str);

// generate english page redirects when languages are enabled
if (ENABLE_TRANSLATION) {
if (ENABLE_TRANSLATION && metadata.permalink.indexOf("docs/en") !== -1) {
const redirectComp = (
<Redirect
metadata={metadata}
Expand Down

0 comments on commit 713f7cc

Please sign in to comment.