Fix wrong unified search link to folder

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
pull/30665/head
John Molakvoæ 2022-01-07 12:28:34 +07:00 committed by backportbot[bot]
parent 19e6ffd878
commit 3500ef156a
1 changed files with 3 additions and 0 deletions

@ -118,6 +118,9 @@ class FilesSearchProvider implements IProvider {
// Generate thumbnail url
$thumbnailUrl = $this->urlGenerator->linkToRouteAbsolute('core.Preview.getPreviewByFileId', ['x' => 32, 'y' => 32, 'fileId' => $result->getId()]);
$path = $userFolder->getRelativePath($result->getPath());
// Use shortened link to centralize the various
// files/folder url redirection in files.View.showFile
$link = $this->urlGenerator->linkToRoute(
'files.view.index',
[