Closed meeroslav closed 4 years ago
With parent router set as
<router> <route path="/home"> <app-home *routeComponent></app-home> </route> <route path="/user/**"> <app-user *routeComponent></app-user> </route> <route path="/" redirectTo="/home"></route> <route path="**"> <app-not-found *routeComponent></app-not-found> </route> </router>
And user router set as:
<router> <route path="/:id"> <app-user-profile *routeComponent></app-user-profile> </route> <route path="/"> <app-user-list *routeComponent></app-user-list> </route> </router>
Actual: The following route is handled as correct: '/user/first/second/third' and the UserProfile component would extract id param as third.
id
third
Expected: The router responds with 404 and renders the NotFound component.
With parent router set as
And user router set as:
Actual: The following route is handled as correct: '/user/first/second/third' and the UserProfile component would extract
id
param asthird
.Expected: The router responds with 404 and renders the NotFound component.