I am currently using kaminari for pagination in my project. The url getting generated contains the other parameters as well in addition to the page parameter.
For example, I am using the following to generate my next page url:
path_to_next_page(items, params: params)
This gives me something as follows:
/items?param1=value1&page=1
However, I want only the page parameter to be visible, not the other parameters:
/items?page=1
I tried the following code, but it still gives me the URL with all the parameters:
path_to_next_page(items, params: {page: params['page']})
I also went through this question, and tried the following for the individual page links:
paginate items, params: {page: params['page']}
However, this also generates the URL with all the parameters.
Is there any way to generate the URL with only the page parameter present?