mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #30665 from nextcloud/backport/30530/stable21
This commit is contained in:
commit
f3df26e22a
1 changed files with 5 additions and 5 deletions
|
|
@ -118,12 +118,12 @@ 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',
|
||||
[
|
||||
'dir' => dirname($path),
|
||||
'scrollto' => $result->getName(),
|
||||
]
|
||||
'files.View.showFile',
|
||||
['fileid' => $result->getId()]
|
||||
);
|
||||
|
||||
$searchResultEntry = new SearchResultEntry(
|
||||
|
|
|
|||
Loading…
Reference in a new issue