diff --git a/dashboard/src/utils.js b/dashboard/src/utils.js index c43e3ee48..2f3ba0998 100644 --- a/dashboard/src/utils.js +++ b/dashboard/src/utils.js @@ -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; }