Title: Redirect within Resolve from Angular to AngularJS router breaks in some cases · Issue #17023 · angular/angular · GitHub
Open Graph Title: Redirect within Resolve from Angular to AngularJS router breaks in some cases · Issue #17023 · angular/angular
X Title: Redirect within Resolve from Angular to AngularJS router breaks in some cases · Issue #17023 · angular/angular
Description: We’ve got a situation where in a Resolver, users may want to redirect to an AngularJS route (or any URL not handled by the Angular router). This works okay when you first click on the route as it falls into an else if clause in executeSc...
Open Graph Description: We’ve got a situation where in a Resolver, users may want to redirect to an AngularJS route (or any URL not handled by the Angular router). This works okay when you first click on the route as it f...
X Description: We’ve got a situation where in a Resolver, users may want to redirect to an AngularJS route (or any URL not handled by the Angular router). This works okay when you first click on the route as it f...
Opengraph URL: https://github.com/angular/angular/issues/17023
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Redirect within Resolve from Angular to AngularJS router breaks in some cases","articleBody":"We’ve got a situation where in a Resolver, users may want to redirect to an AngularJS route (or any URL not handled by the Angular router). This works okay when you first click on the route as it falls into an [`else if` clause in `executeScheduledNavigation`](https://github.com/angular/angular/blob/master/packages/router/src/router.ts#L566) designed to clean up the currently rendered route. `runNavigate` is then run and AngularJS router ends up taking over.\n\nBut if you cmd+click (or deep link) to this same route, you end up going to `/` route every time, assuming Angular Router is not set up to handle the `/` route. This happens because `/` is the default `rawUrlTree` when router is instantiated, and Angular Router won’t know about this route.\n\n[Here's an example reproducing the issue](https://github.com/jasonaden/ng1ng2router/tree/redirect_to_ng1). If you click on `Settings` and then `Page Size Settings`, you will be redirected to `/messages/inbox`. But if you `cmd+click` you will be redirected to `/`.","author":{"url":"https://github.com/jasonaden","@type":"Person","name":"jasonaden"},"datePublished":"2017-05-25T21:20:49Z","url":"https://github.com/angular/angular/issues/17023"}
| 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:d41ec742-d7a6-83d5-08d8-bf7353c2855a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4A6:2564F:C3A689:1038FFC:6B00F31C |
| html-safe-nonce | 10a1c4654e6f4399d83e53b4a58e3d8c0c99c629749196bafdb11902d893a306 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEE2OjI1NjRGOkMzQTY4OToxMDM4RkZDOjZCMDBGMzFDIiwidmlzaXRvcl9pZCI6IjYzMzc4ODI4Mjg3Mzg0NTgzOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 233ba174bc8f10245f9d73486deff21c91c68269ebd87f3aa837cd39e13ad537 |
| hovercard-subject-tag | issue:231463254 |
| 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/17023/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e9162a54775dc463b5101714ae92e9af98909dada9921dc5d18b066e7220641/angular/angular/issues/17023 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e9162a54775dc463b5101714ae92e9af98909dada9921dc5d18b066e7220641/angular/angular/issues/17023 |
| og:image:alt | We’ve got a situation where in a Resolver, users may want to redirect to an AngularJS route (or any URL not handled by the Angular router). This works okay when you first click on the route as it f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jasonaden |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width