summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-05 20:04:59 +0200
committerGitHub <noreply@github.com>2024-08-05 20:04:59 +0200
commit48a1b78c85223c55a943f89c1a7d7e3a9080a334 (patch)
tree4890bc1cec73b99def3900bee34e3b360d09fc47
parenta280434b00ee18158270c11d7e44a014a0d6bd11 (diff)
parent564b5ac8d47390b7adc06ac05f96ca0b00c0bfd1 (diff)
downloadnextcloud-server-48a1b78c85223c55a943f89c1a7d7e3a9080a334.tar.gz
nextcloud-server-48a1b78c85223c55a943f89c1a7d7e3a9080a334.zip
Merge pull request #47024 from nextcloud/backport/47015/stable28
[stable28] fix(files): Correctly handle open file URL query
-rw-r--r--apps/files/lib/Controller/ViewController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index e1d84641e2a..3b55eadfbdd 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -415,6 +415,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));
}