diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-01-07 12:28:34 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2022-01-14 08:38:22 +0000 |
commit | 3500ef156ad3c7549d04fe5b6f0084ef354c1954 (patch) | |
tree | f5f76ddf5d1727ed5b91acc8998318ca94665edb | |
parent | 19e6ffd8783996ba06110ef8455f5602b1730467 (diff) | |
download | nextcloud-server-3500ef156ad3c7549d04fe5b6f0084ef354c1954.tar.gz nextcloud-server-3500ef156ad3c7549d04fe5b6f0084ef354c1954.zip |
Fix wrong unified search link to folder
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
-rw-r--r-- | apps/files/lib/Search/FilesSearchProvider.php | 3 |
1 files changed, 3 insertions, 0 deletions
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', [ |