setup: when activated redirect to adminFqdn
This commit is contained in:
@@ -458,7 +458,7 @@ angular.module('Application').filter('tr', translateFilterFactory);
|
||||
// activated
|
||||
// adminFqn
|
||||
// }
|
||||
// returns true if redirected
|
||||
// returns true if redirected . currentView is one of dashboard/restore/setup/activation
|
||||
function redirectIfNeeded(status, currentView) {
|
||||
var search = decodeURIComponent(window.location.search).slice(1).split('&').map(function (item) { return item.split('='); }).reduce(function (o, k) { o[k[0]] = k[1]; return o; }, {});
|
||||
|
||||
@@ -482,7 +482,7 @@ function redirectIfNeeded(status, currentView) {
|
||||
|
||||
return false;
|
||||
}
|
||||
window.location.href = '/';
|
||||
window.location.href = 'https://' + status.adminFqdn + '/';
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -512,6 +512,11 @@ function redirectIfNeeded(status, currentView) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (currentView === 'dashboard') {
|
||||
window.location.href = '/setup.html' + window.location.search;
|
||||
return true;
|
||||
}
|
||||
|
||||
// if we are here, proceed with current view
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user