diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-06-21 11:08:48 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2018-06-29 09:10:16 +0200 |
commit | e5827b3671013c14776ca189e400e3687bfa0983 (patch) | |
tree | 74bbf5d4f5bd10c1c214c7252b349df31137ce52 /server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx | |
parent | f94bc6f1b9be3b9180aef88abe1804b4aaaa194a (diff) | |
download | sonarqube-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.tsx | 3 |
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> |