FS-8257 #resolve [verto_communicator] fix config provision url

This commit is contained in:
Stefan Yohansson
2015-09-30 16:03:13 -03:00
parent 0c5a97739e
commit d8d7a9f352
2 changed files with 3 additions and 1 deletions

View File

@@ -25,7 +25,8 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', '
* Load the Configs before logging in
* with cache buster
*/
var httpRequest = $http.get(window.location.pathname + '/config.json?cachebuster=' + Math.floor((Math.random()*1000000)+1));
var url = window.location.origin + window.location.pathname;
var httpRequest = $http.get(url + 'config.json?cachebuster=' + Math.floor((Math.random()*1000000)+1));
var httpReturn = httpRequest.then(function(response) {
var data = response.data;