summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-01-14 09:48:44 +0100
committerGitHub <noreply@github.com>2022-01-14 09:48:44 +0100
commit99e3b61ff562183b28af1e68864c250507bb8ac8 (patch)
tree2bddb0115487a4e0df89257cb7db13d78c994ee0
parent3500ef156ad3c7549d04fe5b6f0084ef354c1954 (diff)
downloadnextcloud-server-99e3b61ff562183b28af1e68864c250507bb8ac8.tar.gz
nextcloud-server-99e3b61ff562183b28af1e68864c250507bb8ac8.zip
Fix linkToRoute
-rw-r--r--apps/files/lib/Search/FilesSearchProvider.php7
1 files 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(