diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-03 13:53:53 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-03 13:53:53 +0200 |
commit | 4150492ffcc101822b276ed8e02e5a34c5996ca4 (patch) | |
tree | fd589e60fdf80a6388d9ba013a550ad39780f463 /apps/files/lib/Controller/ViewController.php | |
parent | 066bd0a25df42da93ead302c7258a962efee195f (diff) | |
download | nextcloud-server-4150492ffcc101822b276ed8e02e5a34c5996ca4.tar.gz nextcloud-server-4150492ffcc101822b276ed8e02e5a34c5996ca4.zip |
fix(files): When redirecting to a file (internal link) then it should open by default
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/lib/Controller/ViewController.php')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 2 |
1 files changed, 2 insertions, 0 deletions
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)); } |