ember.js: Router Service transitionTo breaks with Query Params on nested transition
Calling transitionTo on a service in the context of an existing transition causes an assertion error to be thrown.
Example Twiddle here
Minimal logic from the reproduction above is: index route’s beforeModel calls the auth service’s ensureSignedIn method which uses the router’s transitionTo method and includes a query param.
Calling it results in:
Assertion Failed: You passed the `login:security_key` query parameter during a transition into login, please update to security_key
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 10
- Comments: 17 (8 by maintainers)
Feels like a hack, but works like a charm. Good enough for me until version update
We were able to temporarily fix this using RouterService#urlFor method: