Skip to content

Commit

Permalink
fix en sidebar links
Browse files Browse the repository at this point in the history
  • Loading branch information
vi-nastya committed Apr 8, 2021
1 parent dc79203 commit bc33ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const pathCollisionDetector = (logger) => {
// english pages are the root: / or /docs in prod, so we remove that part
const removeEnPrefix = (path) => {
if (path.startsWith('en/')) {
return path.replace(/en\//i, '/');
return path.replace(/en\//i, '');
}
return path.replace(/\/en\//i, '/');
};
Expand Down

0 comments on commit bc33ecd

Please sign in to comment.