ember.js icon indicating copy to clipboard operation
ember.js copied to clipboard

Resetting query parameter does not work as expected

Open vmalloc opened this issue 8 years ago • 2 comments

Example project that reproduces it can be found in https://github.com/vmalloc/ember-route-bug-reproduce.

Essentially what happens is if a controller has an observer function on a query param change that resets a second parameter as a response (e.g. resetting the page number when the search term changes) - the second parameter does not get reset when the change is triggered as a result of pressing a link.

In the example the route /#/items by default contains no search value, and the page parameter can be incremented. Then the user clicks the link leading to the same route but with a different search value, and the page remains the same...

Moreover, the page segment of the route URL does get eliminated as if the value returned to its default, but it does not...

vmalloc avatar Oct 31 '17 10:10 vmalloc

Reproduced on Ember 2.16.1, BTW

vmalloc avatar Oct 31 '17 10:10 vmalloc

Ditto, we've also got this problem!

sandstrom avatar May 31 '18 13:05 sandstrom