We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 200c386 commit ddbcfffCopy full SHA for ddbcfff
apps/files/lib/Controller/ViewController.php
@@ -391,6 +391,8 @@ private function redirectToFile(int $fileId) {
391
} else {
392
// set parent path as dir
393
$params['dir'] = $baseFolder->getRelativePath($node->getParent()->getPath());
394
+ // open the file by default (opening the viewer)
395
+ $params['openfile'] = 'true';
396
}
397
return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.indexViewFileid', $params));
398
0 commit comments