From ae2583fd1bfda3983952789f431975cde51e072f Mon Sep 17 00:00:00 2001 From: Stefan Yohansson Date: Fri, 2 Oct 2015 17:57:46 -0300 Subject: [PATCH] FS-8291 [verto_communicator] fix contributors url --- html5/verto/verto_communicator/Gruntfile.js | 1 + .../vertoControllers/controllers/ContributorsController.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/html5/verto/verto_communicator/Gruntfile.js b/html5/verto/verto_communicator/Gruntfile.js index 32838235a0..4fc5966ee0 100644 --- a/html5/verto/verto_communicator/Gruntfile.js +++ b/html5/verto/verto_communicator/Gruntfile.js @@ -131,6 +131,7 @@ module.exports = function (grunt) { routes: { '/partials': 'src/partials', '/config.json': 'src/config.json', + '/contributors.txt': 'src/contributors.txt', '/bower_components': './bower_components', '/js/src': '../js/src', '/js': './js' diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/ContributorsController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/ContributorsController.js index c66f421346..aa00f64e04 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/ContributorsController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/ContributorsController.js @@ -6,7 +6,8 @@ .controller('ContributorsController', ['$scope', '$http', 'toastr', function($scope, $http, toastr) { - $http.get(window.location.pathname + '/contributors.txt') + var url = window.location.origin + window.location.pathname; + $http.get(url + 'contributors.txt') .success(function(data) { var contributors = []; @@ -29,4 +30,4 @@ }); } ]); -})(); \ No newline at end of file +})();