diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/rulePermalink.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/handlebars/rulePermalink.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/rulePermalink.js b/server/sonar-web/src/main/js/helpers/handlebars/rulePermalink.js new file mode 100644 index 00000000000..e0187519286 --- /dev/null +++ b/server/sonar-web/src/main/js/helpers/handlebars/rulePermalink.js @@ -0,0 +1,3 @@ +module.exports = function (ruleKey) { + return baseUrl + '/coding_rules#rule_key=' + encodeURIComponent(ruleKey); +}; |