aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-03-29 13:41:47 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-31 13:09:07 +0200
commit3142e872bcfa1eba2940efa4e4b45612bfc1dd64 (patch)
treeb4c75819c85e0729d55fccd76660bcee0f8a068b /server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js
parent491644917a5ebb44429ef45ee1885ed9728daf56 (diff)
downloadsonarqube-3142e872bcfa1eba2940efa4e4b45612bfc1dd64.tar.gz
sonarqube-3142e872bcfa1eba2940efa4e4b45612bfc1dd64.zip
SONAR-7494 Web: Reintroduce the web app context
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js
index e30ed43fd77..a2dcd979655 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js
@@ -75,7 +75,7 @@ export default Marionette.ItemView.extend({
yesHandler () {
return $.ajax({
type: 'POST',
- url: '/api/qualityprofiles/activate_rule',
+ url: window.baseUrl + '/api/qualityprofiles/activate_rule',
data: {
profile_key: that.model.get('qProfile'),
rule_key: ruleKey,
@@ -97,7 +97,7 @@ export default Marionette.ItemView.extend({
yesHandler () {
return $.ajax({
type: 'POST',
- url: '/api/qualityprofiles/deactivate_rule',
+ url: window.baseUrl + '/api/qualityprofiles/deactivate_rule',
data: {
profile_key: that.model.get('qProfile'),
rule_key: ruleKey