diff options
-rw-r--r-- | server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js | 3 |
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> |