Skip to content

Commit

Permalink
Merge pull request #33682 from nextcloud/fix/noid/help-page-unavailable
Browse files Browse the repository at this point in the history
Fix opening Help page throwing Exception
  • Loading branch information
blizzz authored Aug 25, 2022
2 parents 06340b6 + 9f9da2e commit 711a9fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/settings/lib/Controller/HelpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
2 changes: 1 addition & 1 deletion lib/private/URLGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 711a9fd

Please sign in to comment.