diff options
-rw-r--r-- | apps/comments/lib/Search/CommentsSearchProvider.php | 6 | ||||
-rw-r--r-- | apps/dashboard/.l10nignore | 2 | ||||
-rw-r--r-- | apps/files/lib/Search/FilesSearchProvider.php | 4 | ||||
-rw-r--r-- | apps/user_status/.l10nignore | 2 | ||||
-rw-r--r-- | core/Controller/UnifiedSearchController.php | 7 |
5 files changed, 13 insertions, 8 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'], ]), diff --git a/apps/dashboard/.l10nignore b/apps/dashboard/.l10nignore new file mode 100644 index 00000000000..ea53c49c185 --- /dev/null +++ b/apps/dashboard/.l10nignore @@ -0,0 +1,2 @@ +#webpack bundled files +js/ diff --git a/apps/files/lib/Search/FilesSearchProvider.php b/apps/files/lib/Search/FilesSearchProvider.php index d36153706bf..5c97e771ab7 100644 --- a/apps/files/lib/Search/FilesSearchProvider.php +++ b/apps/files/lib/Search/FilesSearchProvider.php @@ -107,14 +107,14 @@ class FilesSearchProvider implements IProvider { array_map(function (FileResult $result) { // Generate thumbnail url $thumbnailUrl = $result->has_preview - ? $this->urlGenerator->linkToRoute('core.Preview.getPreviewByFileId', ['x' => 32, 'y' => 32, 'fileId' => $result->id]) + ? $this->urlGenerator->linkToRouteAbsolute('core.Preview.getPreviewByFileId', ['x' => 32, 'y' => 32, 'fileId' => $result->id]) : ''; return new SearchResultEntry( $thumbnailUrl, $result->name, $this->formatSubline($result), - $result->link, + $this->urlGenerator->getAbsoluteURL($result->link), $result->type === 'folder' ? 'icon-folder' : $this->mimeTypeDetector->mimeTypeIcon($result->mime_type) ); }, $this->fileSearch->search($query->getTerm())) diff --git a/apps/user_status/.l10nignore b/apps/user_status/.l10nignore new file mode 100644 index 00000000000..ea53c49c185 --- /dev/null +++ b/apps/user_status/.l10nignore @@ -0,0 +1,2 @@ +#webpack bundled files +js/ diff --git a/core/Controller/UnifiedSearchController.php b/core/Controller/UnifiedSearchController.php index e4593ff4174..c2949ce6095 100644 --- a/core/Controller/UnifiedSearchController.php +++ b/core/Controller/UnifiedSearchController.php @@ -72,9 +72,10 @@ class UnifiedSearchController extends OCSController { public function getProviders(string $from = ''): DataResponse { [$route, $parameters] = $this->getRouteInformation($from); - return new DataResponse( - $this->composer->getProviders($route, $parameters) - ); + $result = $this->composer->getProviders($route, $parameters); + $response = new DataResponse($result); + $response->setETag(md5(json_encode($result))); + return $response; } /** |