Title: Navigating with outlets is confusing: outlets map does not apply to consumed segments · Issue #13523 · angular/angular · GitHub
Open Graph Title: Navigating with outlets is confusing: outlets map does not apply to consumed segments · Issue #13523 · angular/angular
X Title: Navigating with outlets is confusing: outlets map does not apply to consumed segments · Issue #13523 · angular/angular
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: MenuCo...
Open Graph 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: ProfileCompon...
X Description: I'm submitting a ... [X] bug report Current behavior I have some routes like: const routes = [ { path: "", component: HomeComponent, pathMatch: "full" }, { path: "profi...
Opengraph URL: https://github.com/angular/angular/issues/13523
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Navigating with outlets is confusing: outlets map does not apply to consumed segments","articleBody":"**I'm submitting a ...**\n```\n[X] bug report\n```\n\n**Current behavior**\n\nI have some routes like:\n\n```ts\nconst routes = [\n { path: \"\", component: HomeComponent, pathMatch: \"full\" },\n { path: \"profile\", component: ProfileComponent },\n { path: \"menu\", component: MenuComponent, outlet: \"sidebar\" },\n];\n```\n\nWhen 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:\n\n```html\n\u003ca [routerLink]=\"['', {outlets: {sidebar: null}}]\">\n Close\n\u003c/a>\n```\n\nWhat doesn't work is navigating away from the sidebar **and also** going to another route like `http://localhost/profile`.\n\n```html\n\u003ca [routerLink]=\"['/profile', {outlets: {sidebar: null}}]\">\n Close\n\u003c/a>\n```\n\nThe link that is rendered is `http://localhost:3971/profile(sidebar:menu)`\n\n**Expected behavior**\n\nThe link that should be rendered is `http://localhost:3971/profile`.\n\n**Repro**\n\nhttps://github.com/tinchou/router-repro\n\n**Please tell us about your environment:**\n\u003c!-- Operating system, IDE, package manager, HTTP server, ... -->\n\nWindows 10, Visual Studio 2017\n\n* **Angular version:** 2.3.1 (didn't work with 2.1.0 either)\n\n* **Browser:** all\n \n* **Language:** TypeScript 2.0.10","author":{"url":"https://github.com/colltoaction","@type":"Person","name":"colltoaction"},"datePublished":"2016-12-16T16:23:49Z","url":"https://github.com/angular/angular/issues/13523"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:97977360-377e-c83f-16d7-dd9067fde75b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7B4:363D8E:145F095:19F8981:6B0114AC |
| html-safe-nonce | a45592c65b6c85c66a9c16a6715ae841a8c9a19d0baaf3517c6a173b78db89bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0I0OjM2M0Q4RToxNDVGMDk1OjE5Rjg5ODE6NkIwMTE0QUMiLCJ2aXNpdG9yX2lkIjoiODAwNzc2Nzk2NDU1NDE3MTU2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 05d5b7dc8c40b89bb23d5a03df5b2b79916c9f7f59f1643404f7a8d1256c60fe |
| hovercard-subject-tag | issue:196097134 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/13523/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3849540fec059b8be3067e5ff65a7383ba9e8b5bfb8a4c2eaa0599805b4500d/angular/angular/issues/13523 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3849540fec059b8be3067e5ff65a7383ba9e8b5bfb8a4c2eaa0599805b4500d/angular/angular/issues/13523 |
| og:image:alt | I'm submitting a ... [X] bug report Current behavior I have some routes like: const routes = [ { path: "", component: HomeComponent, pathMatch: "full" }, { path: "profile", component: ProfileCompon... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colltoaction |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width