aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/controller.js8
-rw-r--r--server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/facets/author-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/facets/language-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/facets/project-facet.js4
-rw-r--r--server/sonar-web/src/main/js/apps/issues/facets/reporter-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/facets/rule-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/facets/tag-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/filters-view.js8
-rw-r--r--server/sonar-web/src/main/js/apps/issues/models/filter.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/models/filters.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/models/issues.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/workspace-header-view.js4
13 files changed, 21 insertions, 21 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/controller.js b/server/sonar-web/src/main/js/apps/issues/controller.js
index bbca2009db9..d7326d71009 100644
--- a/server/sonar-web/src/main/js/apps/issues/controller.js
+++ b/server/sonar-web/src/main/js/apps/issues/controller.js
@@ -70,7 +70,7 @@ export default Controller.extend({
if (this.options.app.state.get('isContext')) {
_.extend(data, this.options.app.state.get('contextQuery'));
}
- return $.get('/api/issues/search', data).done(function (r) {
+ return $.get(window.baseUrl + '/api/issues/search', data).done(function (r) {
const issues = that.options.app.list.parseIssues(r);
if (firstPage) {
that.options.app.list.reset(issues);
@@ -108,7 +108,7 @@ export default Controller.extend({
const that = this;
return $.when(
that.options.app.filters.fetch({ reset: true }),
- $.get('/api/issue_filters/app', function (r) {
+ $.get(window.baseUrl + '/api/issue_filters/app', function (r) {
that.options.app.state.set({
canBulkChange: r.canBulkChange,
canManageFilters: r.canManageFilters
@@ -132,7 +132,7 @@ export default Controller.extend({
if (this.options.app.state.get('isContext')) {
_.extend(data, this.options.app.state.get('contextQuery'));
}
- return $.get('/api/issues/search', data, function (r) {
+ return $.get(window.baseUrl + '/api/issues/search', data, function (r) {
FACET_DATA_FIELDS.forEach(function (field) {
that.options.app.facets[field] = that._mergeCollections(that.options.app.facets[field], r[field]);
});
@@ -151,7 +151,7 @@ export default Controller.extend({
if (this.options.app.state.get('isContext')) {
_.extend(data, this.options.app.state.get('contextQuery'));
}
- return $.get('/api/issues/search', data, function (r) {
+ return $.get(window.baseUrl + '/api/issues/search', data, function (r) {
FACET_DATA_FIELDS.forEach(function (field) {
that.options.app.facets[field] = that._mergeCollections(that.options.app.facets[field], r[field]);
});
diff --git a/server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js
index 0cfe969d2f4..d1d2a27b5e3 100644
--- a/server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js
+++ b/server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js
@@ -26,7 +26,7 @@ export default CustomValuesFacet.extend({
template: Template,
getUrl () {
- return '/api/users/search';
+ return window.baseUrl + '/api/users/search';
},
prepareAjaxSearch () {
diff --git a/server/sonar-web/src/main/js/apps/issues/facets/author-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/author-facet.js
index aec9e84f270..448922fa23d 100644
--- a/server/sonar-web/src/main/js/apps/issues/facets/author-facet.js
+++ b/server/sonar-web/src/main/js/apps/issues/facets/author-facet.js
@@ -22,7 +22,7 @@ import { translate, translateWithParameters } from '../../../helpers/l10n';
export default CustomValuesFacet.extend({
getUrl () {
- return '/api/issues/authors';
+ return window.baseUrl + '/api/issues/authors';
},
prepareSearch () {
diff --git a/server/sonar-web/src/main/js/apps/issues/facets/language-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/language-facet.js
index 2c1d2e0ba8f..38164faed8f 100644
--- a/server/sonar-web/src/main/js/apps/issues/facets/language-facet.js
+++ b/server/sonar-web/src/main/js/apps/issues/facets/language-facet.js
@@ -23,7 +23,7 @@ import { translate, translateWithParameters } from '../../../helpers/l10n';
export default CustomValuesFacet.extend({
getUrl () {
- return '/api/languages/list';
+ return window.baseUrl + '/api/languages/list';
},
prepareSearch () {
diff --git a/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js
index 50cc3e3531a..5b1eaf2bfd0 100644
--- a/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js
+++ b/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js
@@ -26,9 +26,9 @@ export default CustomValuesFacet.extend({
getUrl () {
const q = this.options.app.state.get('contextComponentQualifier');
if (q === 'VW' || q === 'SVW') {
- return '/api/components/search_view_components';
+ return window.baseUrl + '/api/components/search_view_components';
} else {
- return '/api/resources/search?f=s2&q=TRK&display_uuid=true';
+ return window.baseUrl + '/api/resources/search?f=s2&q=TRK&display_uuid=true';
}
},
diff --git a/server/sonar-web/src/main/js/apps/issues/facets/reporter-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/reporter-facet.js
index d043039b66c..d2f36ace123 100644
--- a/server/sonar-web/src/main/js/apps/issues/facets/reporter-facet.js
+++ b/server/sonar-web/src/main/js/apps/issues/facets/reporter-facet.js
@@ -22,7 +22,7 @@ import CustomValuesFacet from './custom-values-facet';
export default CustomValuesFacet.extend({
getUrl () {
- return '/api/users/search';
+ return window.baseUrl + '/api/users/search';
},
prepareAjaxSearch () {
diff --git a/server/sonar-web/src/main/js/apps/issues/facets/rule-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/rule-facet.js
index b0dd063d6ae..9cd5a702385 100644
--- a/server/sonar-web/src/main/js/apps/issues/facets/rule-facet.js
+++ b/server/sonar-web/src/main/js/apps/issues/facets/rule-facet.js
@@ -23,7 +23,7 @@ import { translate, translateWithParameters } from '../../../helpers/l10n';
export default CustomValuesFacet.extend({
prepareSearch () {
- let url = '/api/rules/search?f=name,langName';
+ let url = window.baseUrl + '/api/rules/search?f=name,langName';
const languages = this.options.app.state.get('query').languages;
if (languages != null) {
url += '&languages=' + languages;
diff --git a/server/sonar-web/src/main/js/apps/issues/facets/tag-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/tag-facet.js
index e537955cebc..1e41af86e4e 100644
--- a/server/sonar-web/src/main/js/apps/issues/facets/tag-facet.js
+++ b/server/sonar-web/src/main/js/apps/issues/facets/tag-facet.js
@@ -23,7 +23,7 @@ import { translate } from '../../../helpers/l10n';
export default CustomValuesFacet.extend({
prepareSearch () {
- let url = '/api/issues/tags?ps=10';
+ let url = window.baseUrl + '/api/issues/tags?ps=10';
const tags = this.options.app.state.get('query').tags;
if (tags != null) {
url += '&tags=' + tags;
diff --git a/server/sonar-web/src/main/js/apps/issues/filters-view.js b/server/sonar-web/src/main/js/apps/issues/filters-view.js
index 303c567fe5a..810a060944d 100644
--- a/server/sonar-web/src/main/js/apps/issues/filters-view.js
+++ b/server/sonar-web/src/main/js/apps/issues/filters-view.js
@@ -75,26 +75,26 @@ export default Marionette.ItemView.extend({
saveAs () {
const query = this.options.app.controller.getQuery('&');
- const url = '/issues/save_as_form?' + query;
+ const url = window.baseUrl + '/issues/save_as_form?' + query;
window.openModalWindow(url, {});
},
save () {
const that = this;
const query = this.options.app.controller.getQuery('&');
- const url = '/issues/save/' + (this.options.app.state.get('filter').id) + '?' + query;
+ const url = window.baseUrl + '/issues/save/' + (this.options.app.state.get('filter').id) + '?' + query;
return $.post(url).done(function () {
return that.options.app.state.set({ changed: false });
});
},
copy () {
- const url = '/issues/copy_form/' + (this.options.app.state.get('filter').id);
+ const url = window.baseUrl + '/issues/copy_form/' + (this.options.app.state.get('filter').id);
window.openModalWindow(url, {});
},
edit () {
- const url = '/issues/edit_form/' + (this.options.app.state.get('filter').id);
+ const url = window.baseUrl + '/issues/edit_form/' + (this.options.app.state.get('filter').id);
window.openModalWindow(url, {});
},
diff --git a/server/sonar-web/src/main/js/apps/issues/models/filter.js b/server/sonar-web/src/main/js/apps/issues/models/filter.js
index 2110e307d45..23e1060a37a 100644
--- a/server/sonar-web/src/main/js/apps/issues/models/filter.js
+++ b/server/sonar-web/src/main/js/apps/issues/models/filter.js
@@ -21,7 +21,7 @@ import Backbone from 'backbone';
export default Backbone.Model.extend({
url () {
- return '/api/issue_filters/show/' + this.id;
+ return window.baseUrl + '/api/issue_filters/show/' + this.id;
},
parse (r) {
diff --git a/server/sonar-web/src/main/js/apps/issues/models/filters.js b/server/sonar-web/src/main/js/apps/issues/models/filters.js
index 479817bddfb..0aeff2969a5 100644
--- a/server/sonar-web/src/main/js/apps/issues/models/filters.js
+++ b/server/sonar-web/src/main/js/apps/issues/models/filters.js
@@ -24,7 +24,7 @@ export default Backbone.Collection.extend({
model: Filter,
url () {
- return '/api/issue_filters/search';
+ return window.baseUrl + '/api/issue_filters/search';
},
parse (r) {
diff --git a/server/sonar-web/src/main/js/apps/issues/models/issues.js b/server/sonar-web/src/main/js/apps/issues/models/issues.js
index cf88e28729d..c8b94fca35d 100644
--- a/server/sonar-web/src/main/js/apps/issues/models/issues.js
+++ b/server/sonar-web/src/main/js/apps/issues/models/issues.js
@@ -25,7 +25,7 @@ export default Backbone.Collection.extend({
model: Issue,
url () {
- return '/api/issues/search';
+ return window.baseUrl + '/api/issues/search';
},
_injectRelational (issue, source, baseField, lookupField) {
diff --git a/server/sonar-web/src/main/js/apps/issues/workspace-header-view.js b/server/sonar-web/src/main/js/apps/issues/workspace-header-view.js
index d6ba4728cb2..89ed4d1975f 100644
--- a/server/sonar-web/src/main/js/apps/issues/workspace-header-view.js
+++ b/server/sonar-web/src/main/js/apps/issues/workspace-header-view.js
@@ -105,7 +105,7 @@ export default WorkspaceHeaderView.extend({
bulkChange () {
const query = this.options.app.controller.getQuery('&', true);
- const url = '/issues/bulk_change_form?' + query;
+ const url = window.baseUrl + '/issues/bulk_change_form?' + query;
window.openModalWindow(url, {});
},
@@ -113,7 +113,7 @@ export default WorkspaceHeaderView.extend({
const selected = this.options.app.list.where({ selected: true });
const selectedKeys = _.first(_.pluck(selected, 'id'), 200);
const query = 'issues=' + selectedKeys.join();
- const url = '/issues/bulk_change_form?' + query;
+ const url = window.baseUrl + '/issues/bulk_change_form?' + query;
window.openModalWindow(url, {});
},