You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you click in the Add new car link to open the child route /cars/create and then exit, the pagination works. All good.
Reproduce the buggy behaviour
Go to /cars/create and reload the browser.
Close the form. Note that the href in the pagination links is /cars?page=X.
Try to paginate. Instead of going to /cars?page=X the app transitions to /cars/create?page=X
Apparently when the {{link-to (query-params page=1)}} is rendered when a sub route is active, the link will "point" to that route even when you transition back to the parent one. That is not the expected behaviour.
I may or may not have time to fix this this week, but i'll try. If anyone knows the exact point where this is failing go ahead and beat me.
The text was updated successfully, but these errors were encountered:
I made an small ember-cli app to reproduce the bug: https://github.com/cibernox/ember-link-to-qps-bug
Steps to reproduce the expected behaviour:
/cars
and paginate. All goodAdd new car
link to open the child route/cars/create
and then exit, the pagination works. All good.Reproduce the buggy behaviour
/cars/create
and reload the browser./cars?page=X
./cars?page=X
the app transitions to/cars/create?page=X
Apparently when the
{{link-to (query-params page=1)}}
is rendered when a sub route is active, the link will "point" to that route even when you transition back to the parent one. That is not the expected behaviour.I may or may not have time to fix this this week, but i'll try. If anyone knows the exact point where this is failing go ahead and beat me.
The text was updated successfully, but these errors were encountered: