How to change param order in URL of Kaminari pagination

103 Views Asked by At

Right now I have a rails app where users can query for items. The url looks like

localhost:3000/items?query=test&type=active

However, Kaminari's pagination changes the param order:

localhost:3000/items?type=active&page=2&query=test

How do I change it to be:

localhost:3000/items?query=test&type=active&page=2

EDIT: I want to change this purely for aesthetic purposes. I just wanted the page param to be inserted after the existing params, without reversing their order and inserting itself in between.

0

There are 0 best solutions below