I have a URL like so http://example.com/?sort=pop
In my view I am using link_to category.name, categories_path(category)
How can I preserve any query string parameters that might already exist on the requesting URL?
So the final link URL would be http://example.com/categories/1?sort=pop