From 3b731fa908aa7b12b69f16c2a4bb8faa2158576e Mon Sep 17 00:00:00 2001 From: Kevin K Date: Sun, 1 Oct 2023 06:37:14 -0500 Subject: [PATCH] Preserve query strings when using pagination with runway tag; #349 --- src/Tags/RunwayTag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tags/RunwayTag.php b/src/Tags/RunwayTag.php index f92aff9d..fe7e529a 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')); + $paginator = $query->paginate($this->params->get('limit'))->withQueryString(); $paginator = app()->makeWith(LengthAwarePaginator::class, [ 'items' => $paginator->items(),