bufferoverflow
7 months ago

Laravel pagination links reset the GET query

Posted 7 months ago by bufferoverflow

I have a form in a Real Estate website that searches for properties with filters (parameters) like rooms, baths, province... I print the results using pagination ->paginate(6).

The search goes well and the results show up well filtered, but when I click on another page all the parameters get replaced for ?page=2.

When I do a search: /properties/search?type=terrain&service=sell&province=&city=&baths=&rooms=&sort=all

Then I click on the next page: /properties/search?page=2

Please sign in or create an account to participate in this conversation.