Skip to content

Commit

Permalink
Preserve query strings when using pagination with runway tag; #349
Browse files Browse the repository at this point in the history
  • Loading branch information
kevnk authored Oct 1, 2023
1 parent 2158f28 commit 3b731fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tags/RunwayTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
$paginator = $query->paginate($this->params->get('limit'))->withQueryString();

$paginator = app()->makeWith(LengthAwarePaginator::class, [
'items' => $paginator->items(),
Expand Down

0 comments on commit 3b731fa

Please sign in to comment.