diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-12 15:31:14 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-16 11:08:02 +0200 |
commit | 14018e728e0d7314616aa2af79964f08c5a03e5d (patch) | |
tree | eae292e973c548cd6744d1a1bd74659f7831d855 /server/sonar-web/src/main/js/helpers | |
parent | 62bd551bfb67b52848d3b04fcc1f6b33c9f2e263 (diff) | |
download | sonarqube-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.ts | 4 |
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 } }; +} |