mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Merge pull request #47023 from nextcloud/backport/47015/stable29
[stable29] fix(files): Correctly handle open file URL query
This commit is contained in:
commit
98dc0eed3b
1 changed files with 2 additions and 0 deletions
|
|
@ -391,6 +391,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