From 99e3b61ff562183b28af1e68864c250507bb8ac8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6?= Date: Fri, 14 Jan 2022 09:48:44 +0100 Subject: [PATCH] Fix linkToRoute --- apps/files/lib/Search/FilesSearchProvider.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/files/lib/Search/FilesSearchProvider.php b/apps/files/lib/Search/FilesSearchProvider.php index 0f32cf17756..d0d85d38729 100644 --- a/apps/files/lib/Search/FilesSearchProvider.php +++ b/apps/files/lib/Search/FilesSearchProvider.php @@ -122,11 +122,8 @@ class FilesSearchProvider implements IProvider { // 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( -- 2.39.5