diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-15 14:07:45 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-15 14:07:45 +0300 |
commit | ce0f28c123a441d114e12cc285bd2a377b6d7283 (patch) | |
tree | f14363251117206b36b4f04b5daf790d6362457f | |
parent | cca3a249fd9e59caf8822060ddda5add9a8205bc (diff) | |
parent | effc52257263d16bd9d570f7a9c2bfdaaaf2a143 (diff) |
Merge pull request #23231 from owncloud/backport-23190
[stable9] Use proper URLs for search results
-rw-r--r-- | lib/private/search/result/file.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/search/result/file.php b/lib/private/search/result/file.php index d987d6c8e73..f1347001eaf 100644 --- a/lib/private/search/result/file.php +++ b/lib/private/search/result/file.php @@ -79,10 +79,12 @@ class File extends \OCP\Search\Result { $info = pathinfo($path); $this->id = $data->getId(); $this->name = $info['basename']; - $this->link = \OCP\Util::linkTo( - 'files', - 'index.php', - array('dir' => $info['dirname'], 'scrollto' => $info['basename']) + $this->link = \OC::$server->getURLGenerator()->linkToRoute( + 'files.view.index', + [ + 'dir' => $info['dirname'], + 'scrollto' => $info['basename'], + ] ); $this->permissions = $data->getPermissions(); $this->path = $path; |