aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/facets
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/facets
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/facets')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js
index 5902c89ee78..881625aa5b0 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js
@@ -32,7 +32,7 @@ export default BaseFacet.extend({
},
getUrl () {
- return '';
+ return window.baseUrl;
},
onRender () {
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js
index 05c268aeb09..9af9562fff7 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js
@@ -23,7 +23,7 @@ import CustomValuesFacet from './custom-values-facet';
export default CustomValuesFacet.extend({
getUrl () {
- return '/api/languages/list';
+ return window.baseUrl + '/api/languages/list';
},
prepareAjaxSearch () {
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js
index 3c5fea1b300..76067f5b24c 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js
@@ -23,7 +23,7 @@ import CustomValuesFacet from './custom-values-facet';
export default CustomValuesFacet.extend({
getUrl () {
- return '/api/rules/repositories';
+ return window.baseUrl + '/api/rules/repositories';
},
prepareAjaxSearch () {
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js
index 210a73a9434..b672b3af9ba 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js
@@ -22,7 +22,7 @@ import CustomValuesFacet from './custom-values-facet';
export default CustomValuesFacet.extend({
getUrl () {
- return '/api/rules/tags';
+ return window.baseUrl + '/api/rules/tags';
},
prepareAjaxSearch () {