Open
Description
The following is either a bug in behavior or a bug in the sense that we are missing an assertion on a key constraint of the router.
Setup
this.route('parent', { path: 'parent/:id' }, function() {
this.route('child', { path: 'child/:id' });
});
Expected Outcome
link-to
points to the url/parent/1/child/2
id
param given to parent is1
id
param given to child is2
url
after transitioning is updated to/parent/1/child/2
Observed Outcome
- [BUG]
link-to
points to the url/parent/2/child/2
id
param given to parent is1
id
param given to child is2
- [BUG]
url
after transitioning is updated to/parent/1/child/1
*Note that the urls are different in both places, the bug is inconsistent as to which id
is accidentally used for both params.
Versions Affected
All versions of Ember seem to be affected.
Debugging I've found this has been either a bug or an un-asserted constraint since at least Ember 2.12
.
Activity