aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-15 09:20:10 +0200
committerJoas Schilling <coding@schilljs.com>2020-09-15 09:20:10 +0200
commitd37bd2cbabbe780fdf6f0ecf113336732f7de16c (patch)
tree97bb8af8df3ce1916b75071ffe0f562974b2dcfc /apps/comments/lib
parenta8d9b22beba9701c5b8b5c8b0f565ada087ec3f9 (diff)
downloadnextcloud-server-d37bd2cbabbe780fdf6f0ecf113336732f7de16c.tar.gz
nextcloud-server-d37bd2cbabbe780fdf6f0ecf113336732f7de16c.zip
Use absolute URLs on search results for the clients
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments/lib')
-rw-r--r--apps/comments/lib/Search/CommentsSearchProvider.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/comments/lib/Search/CommentsSearchProvider.php b/apps/comments/lib/Search/CommentsSearchProvider.php
index cae4c2f2351..67c297b02ce 100644
--- a/apps/comments/lib/Search/CommentsSearchProvider.php
+++ b/apps/comments/lib/Search/CommentsSearchProvider.php
@@ -99,13 +99,13 @@ class CommentsSearchProvider implements IProvider {
$pathInfo = pathinfo($path);
$isUser = $this->userManager->userExists($result->authorId);
$avatarUrl = $isUser
- ? $this->urlGenerator->linkToRoute('core.avatar.getAvatar', ['userId' => $result->authorId, 'size' => 42])
- : $this->urlGenerator->linkToRoute('core.GuestAvatar.getAvatar', ['guestName' => $result->authorId, 'size' => 42]);
+ ? $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => $result->authorId, 'size' => 42])
+ : $this->urlGenerator->linkToRouteAbsolute('core.GuestAvatar.getAvatar', ['guestName' => $result->authorId, 'size' => 42]);
return new SearchResultEntry(
$avatarUrl,
$result->name,
$path,
- $this->urlGenerator->linkToRoute('files.view.index',[
+ $this->urlGenerator->linkToRouteAbsolute('files.view.index',[
'dir' => $pathInfo['dirname'],
'scrollto' => $pathInfo['basename'],
]),