diff --git a/apps/settings/lib/Controller/HelpController.php b/apps/settings/lib/Controller/HelpController.php index 8a62fb9b58cca..b8780ae40bac3 100644 --- a/apps/settings/lib/Controller/HelpController.php +++ b/apps/settings/lib/Controller/HelpController.php @@ -79,7 +79,7 @@ public function help(string $mode = 'user'): TemplateResponse { } $documentationUrl = $this->urlGenerator->getAbsoluteURL( - $this->urlGenerator->linkTo('core', 'doc/' . $mode . '/index.html') + $this->urlGenerator->linkTo('', 'core/doc/' . $mode . '/index.html') ); $urlUserDocs = $this->urlGenerator->linkToRoute('settings.Help.help', ['mode' => 'user']); diff --git a/lib/private/URLGenerator.php b/lib/private/URLGenerator.php index 6115d4a221e32..7be2895a1ef21 100644 --- a/lib/private/URLGenerator.php +++ b/lib/private/URLGenerator.php @@ -146,7 +146,7 @@ public function linkTo(string $appName, string $file, array $args = []): string if ($appName !== '') { $app_path = $this->getAppManager()->getAppPath($appName); // Check if the app is in the app folder - if ($app_path && file_exists($app_path . '/' . $file)) { + if (file_exists($app_path . '/' . $file)) { if (substr($file, -3) === 'php') { $urlLinkTo = \OC::$WEBROOT . '/index.php/apps/' . $appName; if ($frontControllerActive) {