mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
Only builds redirect pages if the current file is an english doc (#152)
This commit is contained in:
parent
d8b55fffa4
commit
574872d075
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue