fix(files): When redirecting to a file (internal link) then it should open by default

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-08-03 13:53:53 +02:00
parent a280434b00
commit 564b5ac8d4
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

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