Fix the redirection pre-setup

This commit is contained in:
Johannes Zellner
2025-07-22 18:03:40 +02:00
parent 2ec6e47086
commit 9e907f10b1
3 changed files with 39 additions and 21 deletions

View File

@@ -573,6 +573,11 @@ function redirectIfNeeded(status, currentView) {
return true;
}
if (currentView !== 'setup' && currentView !== 'restore') {
window.location.href = '/setup.html' + window.location.search;
return true;
}
// if we are here, proceed with current view
return false;
}