restore: do not redirect back to setup view

This commit is contained in:
Girish Ramakrishnan
2025-07-14 15:02:30 +02:00
parent 26637c0f1c
commit aca85b63ae

View File

@@ -521,7 +521,7 @@ function taskNameFromInstallationState(installationState) {
// activated
// adminFqn
// }
// returns true if redirected . currentView is one of dashboard/restore/setup/activation
// 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; }, {});
@@ -573,11 +573,6 @@ function redirectIfNeeded(status, currentView) {
return true;
}
if (currentView !== 'setup') {
window.location.href = '/setup.html' + window.location.search;
return true;
}
// if we are here, proceed with current view
return false;
}