diff --git a/modules/next/modules/next_jsonapi/src/Controller/EntityResource.php b/modules/next/modules/next_jsonapi/src/Controller/EntityResource.php index 5bbe426d..a05cd17f 100644 --- a/modules/next/modules/next_jsonapi/src/Controller/EntityResource.php +++ b/modules/next/modules/next_jsonapi/src/Controller/EntityResource.php @@ -100,7 +100,7 @@ protected function getJsonApiParams(Request $request, ResourceType $resource_typ $max = $page['limit']; } - $params[OffsetPage::KEY_NAME] = new OffsetPage($query['offset'] ?? OffsetPage::DEFAULT_OFFSET, $max); + $params[OffsetPage::KEY_NAME] = new OffsetPage($page['offset'] ?? OffsetPage::DEFAULT_OFFSET, $max); return $params; }