Fix linkToRoute

pull/30665/head
John Molakvoæ 2022-01-14 09:48:44 +07:00 committed by GitHub
parent 3500ef156a
commit 99e3b61ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

@ -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(