diff --git a/src/App.php b/src/App.php index 0f0c0537e4..41c50fda5d 100644 --- a/src/App.php +++ b/src/App.php @@ -1079,7 +1079,7 @@ class App // but we need "view" module for stylesheet if ($this->getMode()->isInstall() && $this->module !== 'install') { $this->internalRedirect('install'); - } elseif (!$this->getMode()->has(App\Mode::MAINTENANCEDISABLED) && $this->module !== 'maintenance') { + } elseif (!$this->getMode()->isInstall() && !$this->getMode()->has(App\Mode::MAINTENANCEDISABLED) && $this->module !== 'maintenance') { $this->internalRedirect('maintenance'); } else { $this->checkURL();