In my view I render collection and I have sort buttons.
When sort button is clicked then collection is fetched with some custom query param (like &sort=id+desc
). It works but I would like to also change url querystring to this query param (&sort=id+desc
). The problem is that it works but it re-renders whole view as router just redirects to different action (actually the same action but with different query params).
How I can just change url query param without reloading view and also add it to history?
I am using pushState in my app