Fixed redirect
This commit is contained in:
parent
e45178c132
commit
d56c126b35
@ -19,7 +19,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
}
|
}
|
||||||
if (location.protocol == 'http:' &&
|
if (location.protocol == 'http:' &&
|
||||||
Config.App.domains.indexOf(location.hostname) != -1) {
|
Config.App.domains.indexOf(location.hostname) != -1) {
|
||||||
location = 'https://' + location.hostname + '/#/login';
|
location.protocol = 'https:';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$scope.showWelcome = true;
|
$scope.showWelcome = true;
|
||||||
@ -41,7 +41,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
}
|
}
|
||||||
if (location.protocol == 'http:' &&
|
if (location.protocol == 'http:' &&
|
||||||
Config.App.domains.indexOf(location.hostname) != -1) {
|
Config.App.domains.indexOf(location.hostname) != -1) {
|
||||||
location = 'https://' + location.hostname + '/#/login';
|
location.protocol = 'https:';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var options = {dcID: 2, createNetworker: true},
|
var options = {dcID: 2, createNetworker: true},
|
||||||
@ -614,7 +614,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
MtpApiManager.logOut()['finally'](function () {
|
MtpApiManager.logOut()['finally'](function () {
|
||||||
if (location.protocol == 'http:' &&
|
if (location.protocol == 'http:' &&
|
||||||
Config.App.domains.indexOf(location.hostname) != -1) {
|
Config.App.domains.indexOf(location.hostname) != -1) {
|
||||||
location = 'https://' + location.hostname + '/#/login';
|
location.protocol = 'https:';
|
||||||
} else {
|
} else {
|
||||||
location.hash = '/login';
|
location.hash = '/login';
|
||||||
AppRuntimeManager.reload();
|
AppRuntimeManager.reload();
|
||||||
|
Loading…
Reference in New Issue
Block a user