Fix linkToRoute

This commit is contained in:
John Molakvoæ 2022-01-14 09:48:44 +01:00 committed by GitHub
parent 3500ef156a
commit 99e3b61ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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