At the moment, only paramNames on the leaf RouteInfo instance is used here:
https://github.com/buschtoens/ember-link/blob/main/ember-link/src/services/link-manager.ts#L100
But I think we need to traverse up the entire tree (using the parent property) to collect all models?
Otherwise, Ember's router throws an error when creating links using the fromURL option, and providing a URL with e.g. multiple dynamic segments.
At the moment, only
paramNameson the leaf RouteInfo instance is used here:https://github.com/buschtoens/ember-link/blob/main/ember-link/src/services/link-manager.ts#L100
But I think we need to traverse up the entire tree (using the
parentproperty) to collect all models?Otherwise, Ember's router throws an error when creating links using the
fromURLoption, and providing a URL with e.g. multiple dynamic segments.