From d56c126b35cb225ebe3d0f6dff1357c7454f954e Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 11 Dec 2014 00:42:37 -0800 Subject: [PATCH] Fixed redirect --- app/js/controllers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 182a7f90..949bfeb9 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -19,7 +19,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) } if (location.protocol == 'http:' && Config.App.domains.indexOf(location.hostname) != -1) { - location = 'https://' + location.hostname + '/#/login'; + location.protocol = 'https:'; return; } $scope.showWelcome = true; @@ -41,7 +41,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) } if (location.protocol == 'http:' && Config.App.domains.indexOf(location.hostname) != -1) { - location = 'https://' + location.hostname + '/#/login'; + location.protocol = 'https:'; } }); var options = {dcID: 2, createNetworker: true}, @@ -614,7 +614,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) MtpApiManager.logOut()['finally'](function () { if (location.protocol == 'http:' && Config.App.domains.indexOf(location.hostname) != -1) { - location = 'https://' + location.hostname + '/#/login'; + location.protocol = 'https:'; } else { location.hash = '/login'; AppRuntimeManager.reload();