diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-10-16 13:51:48 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-10-16 16:41:53 +0200 |
commit | 480e3a1794bb19b88d7ee1becaf97ebe7066bb5b (patch) | |
tree | a3482457a498805abccd66d6d6caaec1ee19da60 | |
parent | e481af9138fa10ce01b0dfe9f7b0bd961f8408d7 (diff) | |
download | sonarqube-480e3a1794bb19b88d7ee1becaf97ebe7066bb5b.tar.gz sonarqube-480e3a1794bb19b88d7ee1becaf97ebe7066bb5b.zip |
Remove use of GATSBY_USE_PREFIX
-rw-r--r-- | server/sonar-docs/src/layouts/components/CategoryLink.js | 3 |
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 ( |