Skip to content

Commit

Permalink
Update docusaurus.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rfraposa committed Apr 4, 2022
1 parent 82cb8a0 commit bef4a6d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ const config = {
},
],
createRedirects(existingPath) {
if (existingPath.includes('/en/'))
{
return [
existingPath.replaceAll('/en/', '/ja/'),
existingPath.replaceAll('/en/', '/ru/'),
existingPath.replaceAll('/en/', '/zh/'),
];
}
if (existingPath.includes('/en')) {
return [
existingPath.replaceAll('-', '_'),
Expand Down Expand Up @@ -113,6 +105,14 @@ const config = {
existingPath.replace('sql-reference', 'query_language'),
];
}
if (existingPath.includes('/en/'))
{
return [
existingPath.replaceAll('/en/', '/ja/'),
existingPath.replaceAll('/en/', '/ru/'),
existingPath.replaceAll('/en/', '/zh/'),
];
}

return undefined; // Return a falsy value: no redirect created
},
Expand Down

0 comments on commit bef4a6d

Please sign in to comment.