From: Ferdinand Thiessen Date: Sat, 3 Aug 2024 11:53:53 +0000 (+0200) Subject: fix(files): When redirecting to a file (internal link) then it should open by default X-Git-Tag: v30.0.0beta4~20^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4150492ffcc101822b276ed8e02e5a34c5996ca4;p=nextcloud-server.git fix(files): When redirecting to a file (internal link) then it should open by default Signed-off-by: Ferdinand Thiessen --- diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index ea3c751c826..cdad09d27a1 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -335,6 +335,8 @@ class ViewController extends Controller { } else { // set parent path as dir $params['dir'] = $baseFolder->getRelativePath($node->getParent()->getPath()); + // open the file by default (opening the viewer) + $params['openfile'] = 'true'; } return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.indexViewFileid', $params)); }