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
@RouteConfig(const [
constRoute(
name:'Planning',
path:'planning',
component:PlanningComponent),
constRoute(
name:'Company',
// This 'details/' is required, otherwise there are conflicts between the// routes as 'all' and 'planning' are interpreted as companyId's.
path:'details/:companyId/...',
component:CompanyComponent)
])
Ideally I'd like to remove details/ from the URL. Right now though planning is interpreted as a :companyId and fails, requiring me to add a prefix.
So with this configuration (but with /:companyId/... instead of /details/:companyId/...), you navigate to a URL like /planning, and rather than navigate to PlanningComponent, it's navigating to CompanyComponent ?
What does the RouteConfig for CompanyComponent look like? Specifically, does it include a route with path: '/'?
I have a hunch why you might be seeing this, but want to double check to be sure.
I have a reproduction for the case I describe above, but I want to make sure that if this is a problem in some other configuration that I include a test for it as well.
Activity
btford commentedon Dec 16, 2015
So with this configuration (but with
/:companyId/...instead of/details/:companyId/...), you navigate to a URL like/planning, and rather than navigate toPlanningComponent, it's navigating toCompanyComponent?What does the
RouteConfigforCompanyComponentlook like? Specifically, does it include a route withpath: '/'?I have a hunch why you might be seeing this, but want to double check to be sure.
btford commentedon Dec 16, 2015
I have a reproduction for the case I describe above, but I want to make sure that if this is a problem in some other configuration that I include a test for it as well.
btford commentedon Dec 16, 2015
Just chatted with @matanlurey, and the same is true of routes with
useAsDefault.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.