diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-09-15 11:35:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 11:35:28 +0200 |
commit | 2dbeb58c7ac16e3b7c44cb1783cd1b0a5f0f616d (patch) | |
tree | bd9265efd9de9f12fe0bca78eb6d709f71099e2e /apps/files | |
parent | 74e0b501998ee28915d4f5cbda22189e8afd55d3 (diff) | |
parent | d37bd2cbabbe780fdf6f0ecf113336732f7de16c (diff) | |
download | nextcloud-server-2dbeb58c7ac16e3b7c44cb1783cd1b0a5f0f616d.tar.gz nextcloud-server-2dbeb58c7ac16e3b7c44cb1783cd1b0a5f0f616d.zip |
Merge pull request #22854 from nextcloud/bugfix/noid/unified-search
Bugfix/noid/unified search
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Search/FilesSearchProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Search/FilesSearchProvider.php b/apps/files/lib/Search/FilesSearchProvider.php index d36153706bf..5c97e771ab7 100644 --- a/apps/files/lib/Search/FilesSearchProvider.php +++ b/apps/files/lib/Search/FilesSearchProvider.php @@ -107,14 +107,14 @@ class FilesSearchProvider implements IProvider { array_map(function (FileResult $result) { // Generate thumbnail url $thumbnailUrl = $result->has_preview - ? $this->urlGenerator->linkToRoute('core.Preview.getPreviewByFileId', ['x' => 32, 'y' => 32, 'fileId' => $result->id]) + ? $this->urlGenerator->linkToRouteAbsolute('core.Preview.getPreviewByFileId', ['x' => 32, 'y' => 32, 'fileId' => $result->id]) : ''; return new SearchResultEntry( $thumbnailUrl, $result->name, $this->formatSubline($result), - $result->link, + $this->urlGenerator->getAbsoluteURL($result->link), $result->type === 'folder' ? 'icon-folder' : $this->mimeTypeDetector->mimeTypeIcon($result->mime_type) ); }, $this->fileSearch->search($query->getTerm())) |