Title: Permit additional redirects after an absolute redirect · Issue #39770 · angular/angular · GitHub
Open Graph Title: Permit additional redirects after an absolute redirect · Issue #39770 · angular/angular
X Title: Permit additional redirects after an absolute redirect · Issue #39770 · angular/angular
Description: 🐞 bug report Affected Package @angular/router Is this a regression? No, it's not Description When router has redirectTo chain, redirection not working as expected. 🔬 Minimal Reproduction here is the repo 🔥 Exception or Error app-routing....
Open Graph Description: 🐞 bug report Affected Package @angular/router Is this a regression? No, it's not Description When router has redirectTo chain, redirection not working as expected. 🔬 Minimal Reproduction here is th...
X Description: 🐞 bug report Affected Package @angular/router Is this a regression? No, it's not Description When router has redirectTo chain, redirection not working as expected. 🔬 Minimal Reproduction here i...
Opengraph URL: https://github.com/angular/angular/issues/39770
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Permit additional redirects after an absolute redirect","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->\r\n\u003c!-- ✍️edit: --> @angular/router\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\n\u003c!-- ✍️--> No, it's not\r\n\r\n\r\n### Description\r\n\r\nWhen router has `redirectTo` chain, redirection not working as expected.\r\n\r\n## 🔬 Minimal Reproduction\r\n\u003c!--\r\nPlease create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-ivy\r\n-->\r\n[here is the repo](https://github.com/Seemspyo/ng-issue/tree/child-router)\r\n\r\n## 🔥 Exception or Error\r\n`app-routing.module.ts`\r\n```ts\r\n { path: 'depth-test', children: [\r\n\r\n { path: '', redirectTo: '/depth-test/depth-1', pathMatch: 'full' },\r\n\r\n { path: 'depth-1', component: Depth1Component, children: [\r\n\r\n { path: '', redirectTo: '/depth-test/depth-1/child-depth-1', pathMatch: 'full' },\r\n { path: 'child-depth-1', component: Depth1childComponent }\r\n\r\n ] }\r\n\r\n ] }\r\n```\r\n\r\nwhen navigate like below\r\n```ts\r\nthis.router.navigateByUrl('/depth-test');\r\n```\r\nangular redirect to `/depth-test/depth-1`, not `/depth-test/depth-1/child-depth-1` as expected. Neither `routerLink` nor `Router.navigate` working.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 10.1.7\r\nNode: 14.12.0\r\nOS: win32 x64\r\n\r\nAngular: 10.1.6\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1001.7\r\n@angular-devkit/build-angular 0.1001.7\r\n@angular-devkit/core 10.1.7\r\n@angular-devkit/schematics 10.1.7\r\n@angular/cli 10.1.7\r\n@schematics/angular 10.1.7\r\n@schematics/update 0.1001.7\r\nrxjs 6.6.3\r\ntypescript 4.0.5\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\n","author":{"url":"https://github.com/Seemspyo","@type":"Person","name":"Seemspyo"},"datePublished":"2020-11-20T01:22:17Z","url":"https://github.com/angular/angular/issues/39770"}
| 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:fe0291fe-3058-efcd-7ec6-58765c4747f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C0C:4BB79:EA5285:12B7C4E:6B010D82 |
| html-safe-nonce | 1c51b21c19af05f6d3a044fc6cd8bba167533b5c51862d57502a9588fe7b815c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzBDOjRCQjc5OkVBNTI4NToxMkI3QzRFOjZCMDEwRDgyIiwidmlzaXRvcl9pZCI6IjIzNTQ3NTM1MjczNDUxMjI2OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0c11243c6f55299699d8b6a223ca0c1a3f163b8425f19186ce4dcdaf85b31167 |
| hovercard-subject-tag | issue:747062164 |
| 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/39770/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed88bea6d05280d25a4a9b65543b3adfd0040262519d05db875f0eeb5a5f50e2/angular/angular/issues/39770 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed88bea6d05280d25a4a9b65543b3adfd0040262519d05db875f0eeb5a5f50e2/angular/angular/issues/39770 |
| og:image:alt | 🐞 bug report Affected Package @angular/router Is this a regression? No, it's not Description When router has redirectTo chain, redirection not working as expected. 🔬 Minimal Reproduction here is th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Seemspyo |
| 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