aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Mugnier <pascal.mugnier@sonarsource.com>2018-10-16 13:51:48 +0200
committerSonarTech <sonartech@sonarsource.com>2018-10-16 16:41:53 +0200
commit480e3a1794bb19b88d7ee1becaf97ebe7066bb5b (patch)
treea3482457a498805abccd66d6d6caaec1ee19da60
parente481af9138fa10ce01b0dfe9f7b0bd961f8408d7 (diff)
downloadsonarqube-480e3a1794bb19b88d7ee1becaf97ebe7066bb5b.tar.gz
sonarqube-480e3a1794bb19b88d7ee1becaf97ebe7066bb5b.zip
Remove use of GATSBY_USE_PREFIX
-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 (