aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/users.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/api/users.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/api/users.js')
-rw-r--r--server/sonar-web/src/main/js/api/users.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/users.js b/server/sonar-web/src/main/js/api/users.js
index 6c00ea84945..0be56fada04 100644
--- a/server/sonar-web/src/main/js/api/users.js
+++ b/server/sonar-web/src/main/js/api/users.js
@@ -20,12 +20,12 @@
import { getJSON, post } from '../helpers/request.js';
export function getCurrentUser () {
- const url = '/api/users/current';
+ const url = window.baseUrl + '/api/users/current';
return getJSON(url);
}
export function changePassword (login, password, previousPassword) {
- const url = '/api/users/change_password';
+ const url = window.baseUrl + '/api/users/change_password';
const data = { login, password };
if (previousPassword != null) {