aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-docs/src/layouts/components/CategoryLink.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-docs/src/layouts/components/CategoryLink.js b/server/sonar-docs/src/layouts/components/CategoryLink.js
index 7e6e9e7b227..fb65fc2f45c 100644
--- a/server/sonar-docs/src/layouts/components/CategoryLink.js
+++ b/server/sonar-docs/src/layouts/components/CategoryLink.js
@@ -38,8 +38,7 @@ export default class CategoryLink extends React.PureComponent {
render() {
const { node, location, headers, children, title, open } = this.props;
- const prefix =
- process.env.GATSBY_USE_PREFIX === '1' ? '/' + process.env.GATSBY_DOCS_VERSION : '';
+ const prefix = '/' + process.env.GATSBY_DOCS_VERSION;
const url = node ? node.frontmatter.url || node.fields.slug : '';
const isCurrentPage = location.pathname === prefix + url;
return (