aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx
diff options
context:
space:
mode:
authorPascal Mugnier <pascal.mugnier@sonarsource.com>2018-06-21 11:08:48 +0200
committersonartech <sonartech@sonarsource.com>2018-06-29 09:10:16 +0200
commite5827b3671013c14776ca189e400e3687bfa0983 (patch)
tree74bbf5d4f5bd10c1c214c7252b349df31137ce52 /server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx
parentf94bc6f1b9be3b9180aef88abe1804b4aaaa194a (diff)
downloadsonarqube-e5827b3671013c14776ca189e400e3687bfa0983.tar.gz
sonarqube-e5827b3671013c14776ca189e400e3687bfa0983.zip
SONAR-10813 Add project branches
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx
index 1f3045cfc52..53009cc4d40 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx
@@ -400,9 +400,10 @@ export default class ComponentNavMenu extends React.PureComponent<Props> {
renderExtension = ({ key, name }: Extension, isAdmin: boolean) => {
const pathname = isAdmin ? `/project/admin/extension/${key}` : `/project/extension/${key}`;
+ const query = { id: this.props.component.key, qualifier: this.props.component.qualifier };
return (
<li key={key}>
- <Link to={{ pathname, query: { id: this.props.component.key } }} activeClassName="active">
+ <Link activeClassName="active" to={{ pathname, query }}>
{name}
</Link>
</li>