diff --git a/www/js/app.js b/www/js/app.js index eaf82f55cbbdf60f4807fc294994f9477927ace6..1bbfe69416500e8cdc90883a944e6f3ee6d0b934 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -328,7 +328,7 @@ angular.module('cesium', ['ionic', 'ionic-material', 'ngMessages', 'pascalprecht }); // Automatic redirection to HTTPS - if ((csConfig.httpsMode == true || csConfig.httpsMode === 'force') && + if ((csConfig.httpsMode === true || csConfig.httpsMode == 'true' ||csConfig.httpsMode === 'force') && $window.location.protocol != 'https:') { $rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) { var path = 'https' + $rootScope.rootPath.substr(4) + $state.href(next, nextParams);