I’ve ran into an issue with link-to helper and a route which has optional query params.
I have a ‘projects’ route which lists all Projects, but the related view also offers a list of links which filter the Projects out by their Category (
'/projects?category=art'). So, default controller properties that link to query-params are all
null. I’m having a hard time figuring out how to place a link-to helper in the same view which leads to a ‘clean’ route, without the query params. Placing a link-to helper with no query-params just leads to the current projects route, keeping any query params from the current URL - and what’s worse, keeps it marked as active.
Is there any way to force the link-to helper to ignore current URL query params?