Merge pull request #47024 from nextcloud/backport/47015/stable28

[stable28] fix(files): Correctly handle open file URL query
This commit is contained in:
Ferdinand Thiessen 2024-08-05 20:04:59 +02:00 committed by GitHub
commit 48a1b78c85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));
}