src/Controller/EntityResource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/EntityResource.php b/src/Controller/EntityResource.php index a34d343..346e0ff 100644 --- a/src/Controller/EntityResource.php +++ b/src/Controller/EntityResource.php @@ -895,8 +895,8 @@ class EntityResource { if (is_subclass_of($entity_type_class, EntityPublishedInterface::class)) { $query = (array) $request->query->getIterator(); $collection_links = $collection_links - ->withLink('filter-published', new Link(new CacheableMetadata(), $this->linkManager->getRequestUrl($request, array_merge($query, ['filter' => ['status' => 1]])), ['filter-published'])) - ->withLink('filter-unpublished', new Link(new CacheableMetadata(), $this->linkManager->getRequestUrl($request, array_merge($query, ['filter' => ['status' => 0]])), ['filter-unpublished'])); + ->withLink('filter-published', new Link(new CacheableMetadata(), $this->linkManager->getRequestLink($request, array_merge($query, ['filter' => ['status' => 1]])), ['filter-published'])) + ->withLink('filter-unpublished', new Link(new CacheableMetadata(), $this->linkManager->getRequestLink($request, array_merge($query, ['filter' => ['status' => 0]])), ['filter-unpublished'])); } $response = $this->buildWrappedResponse($entity_collection, $request, $includes, 200, [], $collection_links, $meta);