-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: routerfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfreq3: highrouter: aux routesstate: confirmedtype: bug/fixtype: use-case
Milestone
Description
I'm submitting a ...
[X] bug report
Current behavior
I have some routes like:
const routes = [
{ path: "", component: HomeComponent, pathMatch: "full" },
{ path: "profile", component: ProfileComponent },
{ path: "menu", component: MenuComponent, outlet: "sidebar" },
];When the route http://localhost/(sidebar:menu) is open, then I'm able to remove the named outlet and go to http://localhost/ by clicking an anchor like the following:
<a [routerLink]="['', {outlets: {sidebar: null}}]">
Close
</a>What doesn't work is navigating away from the sidebar and also going to another route like http://localhost/profile.
<a [routerLink]="['/profile', {outlets: {sidebar: null}}]">
Close
</a>The link that is rendered is http://localhost:3971/profile(sidebar:menu)
Expected behavior
The link that should be rendered is http://localhost:3971/profile.
Repro
https://github.com/tinchou/router-repro
Please tell us about your environment:
Windows 10, Visual Studio 2017
-
Angular version: 2.3.1 (didn't work with 2.1.0 either)
-
Browser: all
-
Language: TypeScript 2.0.10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: routerfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfreq3: highrouter: aux routesstate: confirmedtype: bug/fixtype: use-case