diff --git a/lib/private/route/router.php b/lib/private/route/router.php index 33669452f2d6..e03e45c924a0 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -165,7 +165,12 @@ public function loadRoutes($app = null) { } } if (!isset($this->loadedApps['core'])) { - $this->loadedApps['core'] = true; + if ($this->loaded) { + // Only mark core loaded, when no app was ignored, + // Otherwise the OCS routes will not be loaded correctly later on. + $this->loadedApps['core'] = true; + } + $this->useCollection('root'); require_once 'settings/routes.php'; require_once 'core/routes.php';