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
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:
Current behavior
When we create a url using a relativeTo pathless ActivatedRoute, it does consider the next non empty path of this ActivatedRoute as a part of the url.
Expected behavior
RelativeTo is understood as a base for the relative url so its expected to not add its children as parent of the current commands.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
The importance of the correction of this behavior is to allow using many routes on the same level including a pathless route as a default route (as for languages) with the same children.
@manklu Sorry if I was not very clear.
Just to not create two different components ParentComponent and ChildComponent (and that is the real case), I passed the parent data property to the only one common component just to make the distinction. So its not possible to change this property because it means replacing the component in route with another which is not what we need.
That a point. The other point is that what you proposed doesn't solve the incorrect links in the children.
Btw, thanks for your comment 👍 I hope I am more clear now.
Activity
manklu commentedon Oct 3, 2018
@miginmrs If I understand you correctly, it will work if you correct your setting of the parent flag.
Change
to
miginmrs commentedon Oct 3, 2018
@manklu Sorry if I was not very clear.
Just to not create two different components ParentComponent and ChildComponent (and that is the real case), I passed the parent data property to the only one common component just to make the distinction. So its not possible to change this property because it means replacing the component in route with another which is not what we need.
That a point. The other point is that what you proposed doesn't solve the incorrect links in the children.
Btw, thanks for your comment 👍 I hope I am more clear now.
jasonaden commentedon Nov 20, 2018
Thanks for the issue and PR. I'll try to get to the PR shortly and let you know.
fix(router): change processing url tree children condition
fix(router): change processing url tree children condition (#26243)
angular-automatic-lock-bot commentedon Sep 14, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(router): change processing url tree children condition (angular#2…