aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-02-07 13:11:07 +0100
committerGitHub <noreply@github.com>2017-02-07 13:11:07 +0100
commitc54e107bb8305de177d8c805d0368eaf7df3bc37 (patch)
treefb994bad6f25ac5c563c0097502e20b0460f287e /server/sonar-web/src/main/js/helpers
parent929dcab3e90bc534193441f97cf6006d9495e448 (diff)
downloadsonarqube-c54e107bb8305de177d8c805d0368eaf7df3bc37.tar.gz
sonarqube-c54e107bb8305de177d8c805d0368eaf7df3bc37.zip
SONAR-8669 Display organizations on the "Notifications" page (#1633)
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-rw-r--r--server/sonar-web/src/main/js/helpers/urls.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/urls.js b/server/sonar-web/src/main/js/helpers/urls.js
index 6dddb630c09..42416ae5cf4 100644
--- a/server/sonar-web/src/main/js/helpers/urls.js
+++ b/server/sonar-web/src/main/js/helpers/urls.js
@@ -26,6 +26,13 @@ export function getComponentUrl (componentKey) {
return window.baseUrl + '/dashboard?id=' + encodeURIComponent(componentKey);
}
+export function getProjectUrl (key) {
+ return {
+ pathname: '/dashboard',
+ query: { id: key }
+ };
+}
+
/**
* Generate URL for a global issues page
* @param {object} query