aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-11-03 16:15:50 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-11-04 09:08:46 +0100
commit5ceb5bfc65f2a9554d6f23b03892fe0382f4853e (patch)
treeba63e4d18383e1d77b20d6ef6a672aee4323217e
parentcccb2e9097073eca88067d20cb14ecdd199e34d2 (diff)
downloadsonarqube-5ceb5bfc65f2a9554d6f23b03892fe0382f4853e.tar.gz
sonarqube-5ceb5bfc65f2a9554d6f23b03892fe0382f4853e.zip
SONAR-8300 open favorite projects for authenticated users
-rw-r--r--server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js b/server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js
index 1b00795944e..c9707bd89b6 100644
--- a/server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js
+++ b/server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js
@@ -30,7 +30,8 @@ export default React.createClass({
},
renderProjects () {
- const url = window.baseUrl + '/projects';
+ const controller = window.SS.user ? '/projects/favorite' : '/projects';
+ const url = window.baseUrl + controller;
return (
<li className={this.activeLink('/projects')}>
<a href={url}>{translate('projects.page')}</a>