From 3500ef156ad3c7549d04fe5b6f0084ef354c1954 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Fri, 7 Jan 2022 12:28:34 +0100 Subject: Fix wrong unified search link to folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/lib/Search/FilesSearchProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files/lib/Search/FilesSearchProvider.php b/apps/files/lib/Search/FilesSearchProvider.php index 5571d41bda5..0f32cf17756 100644 --- a/apps/files/lib/Search/FilesSearchProvider.php +++ b/apps/files/lib/Search/FilesSearchProvider.php @@ -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', [ -- cgit v1.2.3