diff --git a/src/Tags/RunwayTag.php b/src/Tags/RunwayTag.php index fe7e529a..2785d1eb 100644 --- a/src/Tags/RunwayTag.php +++ b/src/Tags/RunwayTag.php @@ -92,7 +92,7 @@ public function wildcard($resourceHandle = null) } if ($this->params->get('paginate') || $this->params->get('limit')) { - $paginator = $query->paginate($this->params->get('limit'))->withQueryString(); + $paginator = $query->paginate($this->params->get('limit')); $paginator = app()->makeWith(LengthAwarePaginator::class, [ 'items' => $paginator->items(), @@ -100,7 +100,7 @@ public function wildcard($resourceHandle = null) 'perPage' => $paginator->perPage(), 'currentPage' => $paginator->currentPage(), 'options' => $paginator->getOptions(), - ]); + ])->withQueryString(); $results = $paginator->items(); } else {