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
I'm still trying to design a good design for this; it's tricky because you can't easily work backwards from an arbitrary partial URL to a set of components to properly generate the instruction.
For now, I have a solution that only handles the case where you have a link like this:
@RouteConfig([
new Redirect({path: '/', redirectTo: '/second'}),
new Route({path: '/second', component: DummyCmpB, as: 'secondCmp'})
])
class ParentRedirectCmp {
}
@View({{
template: `<a [router-link]="['./first'] >this links to /first/second</a>`
})
@RouteConfig([
new Route({path: '/first/...', component: ParentRedirectCmp, as: 'firstCmp'})
])
class AppCmp {
}
So if you redirect from a child to another route within that child, everything works just fine.
But trying to deeplink a redirect from parent into a deep hierarchy will not work.
Activity
[-]feat(router): linking to redirects[/-][+]fix(router): linking to redirects[/+]btford commentedon Aug 5, 2015
tracks internal bug: b/22617861
btford commentedon Aug 5, 2015
@IgorMinar @matsko I'd like your help designing this.
btford commentedon Aug 13, 2015
I'm still trying to design a good design for this; it's tricky because you can't easily work backwards from an arbitrary partial URL to a set of components to properly generate the instruction.
For now, I have a solution that only handles the case where you have a link like this:
So if you redirect from a child to another route within that child, everything works just fine.
But trying to deeplink a redirect from parent into a deep hierarchy will not work.
angular-automatic-lock-bot commentedon Sep 7, 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.