ember-href-to: href-to helper doesn't recompute when query params change
I’m using ember-source 3.20 and started noticing an issue where the service:-routing. generateURL
returns a URL with query params appended if the route where you are loading the page on has query params already in the URL, even if the usage of href-to
in the template does not specify any query params. This is weird behavior and is causing bugs in our application that has a lot of filtering. The flow now for a user:
- filters by something
- reloads the page with the query param in the URL
- the side nav link has hardcoded the query param in the href
The service:router. urlFor
seems to be the better way to go and fixes the issue with the non-wanted query params in the href.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (16 by maintainers)
Yes, I’ll do that soon.