The matching location needs to be my.domain

This commit is contained in:
Johannes Zellner
2017-01-06 18:17:27 +01:00
parent 35b11d7b22
commit e1b176594a

View File

@@ -61,7 +61,7 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
}
// if we are here from the ip first go to the real domain if already setup
if (status.provider !== 'caas' && status.configState.domain && status.configState.domain !== window.location.hostname) {
if (status.provider !== 'caas' && status.configState.domain && ('my.' + status.configState.domain) !== window.location.hostname) {
window.location.href = 'https://my.' + status.configState.domain + '/setup.html';
return;
}