Recently I was trying to update a query string by adding or updating a parameter for URLs generated in a partial view.
I found an excellent example for achieving this by setting route data here however this didn’t preserve current query string values in the URL. I’ve extended