From 5ceb5bfc65f2a9554d6f23b03892fe0382f4853e Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 3 Nov 2016 16:15:50 +0100 Subject: SONAR-8300 open favorite projects for authenticated users --- server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/sonar-web') 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 (
  • {translate('projects.page')} -- cgit v1.2.3