mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #47024 from nextcloud/backport/47015/stable28
[stable28] fix(files): Correctly handle open file URL query
This commit is contained in:
commit
48a1b78c85
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