Skip to content

Commit 711a9fd

Browse files
authored
Merge pull request #33682 from nextcloud/fix/noid/help-page-unavailable
Fix opening Help page throwing Exception
2 parents 06340b6 + 9f9da2e commit 711a9fd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/settings/lib/Controller/HelpController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function help(string $mode = 'user'): TemplateResponse {
7979
}
8080

8181
$documentationUrl = $this->urlGenerator->getAbsoluteURL(
82-
$this->urlGenerator->linkTo('core', 'doc/' . $mode . '/index.html')
82+
$this->urlGenerator->linkTo('', 'core/doc/' . $mode . '/index.html')
8383
);
8484

8585
$urlUserDocs = $this->urlGenerator->linkToRoute('settings.Help.help', ['mode' => 'user']);

lib/private/URLGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function linkTo(string $appName, string $file, array $args = []): string
146146
if ($appName !== '') {
147147
$app_path = $this->getAppManager()->getAppPath($appName);
148148
// Check if the app is in the app folder
149-
if ($app_path && file_exists($app_path . '/' . $file)) {
149+
if (file_exists($app_path . '/' . $file)) {
150150
if (substr($file, -3) === 'php') {
151151
$urlLinkTo = \OC::$WEBROOT . '/index.php/apps/' . $appName;
152152
if ($frontControllerActive) {

0 commit comments

Comments
 (0)