Title: Router: location.path is old URL during all component hooks. Updates after a tick. · Issue #10909 · angular/angular · GitHub
Open Graph Title: Router: location.path is old URL during all component hooks. Updates after a tick. · Issue #10909 · angular/angular
X Title: Router: location.path is old URL during all component hooks. Updates after a tick. · Issue #10909 · angular/angular
Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request Current behavior The location.path() value remains the old URL after a component's Lifecycle Hooks have been called. After a tick, the locat...
Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request Current behavior The location.path() value remains the old URL after a component's Lifecycle Hooks h...
X Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request Current behavior The location.path() value remains the old URL after a component's...
Opengraph URL: https://github.com/angular/angular/issues/10909
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Router: location.path is old URL during all component hooks. Updates after a tick.","articleBody":"**I'm submitting a ...** (check one with \"x\")\n\n```\n[x] bug report \n[ ] feature request\n[ ] support request \n```\n\n**Current behavior**\n\nThe `location.path()` value remains the old URL after a component's Lifecycle Hooks have been called.\n\nAfter a tick, the `location.path()` value becomes the current URL.\n\nHave been told that this change arrived within the last few RCs.\n\n**Expected/desired behavior**\n\nExpect `location.path()` to become the new URL at least by `ngOnInit`. By that time, the navigation is complete and all components should be in the DOM.\n\n**Reproduction of the problem**\n\nhttp://plnkr.co/edit/WUbTMlukBIYJF3WXYVIj?p=preview\n\n**Please tell us about your environment:**\n- **Angular version:** 2.0.0-rc.5\n- **Browser:** [all ] \n- **Language:** [all ] \n","author":{"url":"https://github.com/wardbell","@type":"Person","name":"wardbell"},"datePublished":"2016-08-18T00:27:32Z","url":"https://github.com/angular/angular/issues/10909"}
| 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:00ab6dec-1ef9-806c-0e74-3ba6022ffb28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E536:882E2:1307E76:1918B22:6B011729 |
| html-safe-nonce | d5941ea837188581dcfff7846b828238338b48fe216894869dfa14f0653da8d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTM2Ojg4MkUyOjEzMDdFNzY6MTkxOEIyMjo2QjAxMTcyOSIsInZpc2l0b3JfaWQiOiIxMTU4NjI5NTY1MTgzMTA0ODEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aee074e3826384a65db29fe5b13748bf5ed7718adc266cc9a1a3057fcc47ab5d |
| hovercard-subject-tag | issue:171791353 |
| 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/10909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2492764f834ed57ad393ed0142dffc7a4dc0aefdced322f02069070e7f98a7d/angular/angular/issues/10909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2492764f834ed57ad393ed0142dffc7a4dc0aefdced322f02069070e7f98a7d/angular/angular/issues/10909 |
| og:image:alt | I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request Current behavior The location.path() value remains the old URL after a component's Lifecycle Hooks h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wardbell |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width