aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-10-12 15:31:14 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-16 11:08:02 +0200
commit14018e728e0d7314616aa2af79964f08c5a03e5d (patch)
treeeae292e973c548cd6744d1a1bd74659f7831d855 /server/sonar-web/src/main/js/helpers
parent62bd551bfb67b52848d3b04fcc1f6b33c9f2e263 (diff)
downloadsonarqube-14018e728e0d7314616aa2af79964f08c5a03e5d.tar.gz
sonarqube-14018e728e0d7314616aa2af79964f08c5a03e5d.zip
SONAR-9790 Add project context to a file permalink
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-rw-r--r--server/sonar-web/src/main/js/helpers/urls.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/urls.ts b/server/sonar-web/src/main/js/helpers/urls.ts
index 91c5bc35d35..aae5afb93bc 100644
--- a/server/sonar-web/src/main/js/helpers/urls.ts
+++ b/server/sonar-web/src/main/js/helpers/urls.ts
@@ -172,3 +172,7 @@ export function getDeprecatedActiveRulesUrl(query = {}, organization?: string |
export function getMarkdownHelpUrl(): string {
return getBaseUrl() + '/markdown/help';
}
+
+export function getCodeUrl(project: string, branch?: string, selected?: string) {
+ return { pathname: '/code', query: { id: project, branch, selected } };
+}