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.
2 parents a280434 + 564b5ac commit 48a1b78Copy full SHA for 48a1b78
1 file changed
apps/files/lib/Controller/ViewController.php
@@ -415,6 +415,8 @@ private function redirectToFile(int $fileId) {
415
} else {
416
// set parent path as dir
417
$params['dir'] = $baseFolder->getRelativePath($node->getParent()->getPath());
418
+ // open the file by default (opening the viewer)
419
+ $params['openfile'] = 'true';
420
}
421
return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.indexViewFileid', $params));
422
0 commit comments