mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
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:
parent
a280434b00
commit
564b5ac8d4
1 changed files with 2 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue