Merge pull request #47023 from nextcloud/backport/47015/stable29

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

View file

@ -391,6 +391,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));
}