mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Fix wrong unified search link to folder
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
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',
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in a new issue