From d8d7a9f352a2fae5e12633470326d7eba59e94b8 Mon Sep 17 00:00:00 2001 From: Stefan Yohansson Date: Wed, 30 Sep 2015 16:03:13 -0300 Subject: [PATCH] FS-8257 #resolve [verto_communicator] fix config provision url --- html5/verto/verto_communicator/Gruntfile.js | 1 + .../src/vertoService/services/configService.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/html5/verto/verto_communicator/Gruntfile.js b/html5/verto/verto_communicator/Gruntfile.js index c68642c8a7..32838235a0 100644 --- a/html5/verto/verto_communicator/Gruntfile.js +++ b/html5/verto/verto_communicator/Gruntfile.js @@ -130,6 +130,7 @@ module.exports = function (grunt) { ], routes: { '/partials': 'src/partials', + '/config.json': 'src/config.json', '/bower_components': './bower_components', '/js/src': '../js/src', '/js': './js' diff --git a/html5/verto/verto_communicator/src/vertoService/services/configService.js b/html5/verto/verto_communicator/src/vertoService/services/configService.js index 924488f733..105a20b324 100644 --- a/html5/verto/verto_communicator/src/vertoService/services/configService.js +++ b/html5/verto/verto_communicator/src/vertoService/services/configService.js @@ -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;