diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code/components/ComponentName.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/code/components/ComponentName.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/components/ComponentName.js b/server/sonar-web/src/main/js/apps/code/components/ComponentName.js index bad7f487537..921aa3f724c 100644 --- a/server/sonar-web/src/main/js/apps/code/components/ComponentName.js +++ b/server/sonar-web/src/main/js/apps/code/components/ComponentName.js @@ -71,7 +71,7 @@ const ComponentName = ({ component, rootComponent, previous, canBrowse }) => { </Link> ); } else if (canBrowse) { - const query = { id: rootComponent.key }; + const query = { id: rootComponent.key, branch: rootComponent.branch }; if (component.key !== rootComponent.key) { Object.assign(query, { selected: component.key }); } |