Title: Keep scroll position when navigating back · Issue #10929 · angular/angular · GitHub
Open Graph Title: Keep scroll position when navigating back · Issue #10929 · angular/angular
X Title: Keep scroll position when navigating back · Issue #10929 · angular/angular
Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...
Open Graph Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request...
X Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not su...
Opengraph URL: https://github.com/angular/angular/issues/10929
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Keep scroll position when navigating back","articleBody":"**I'm submitting a ...** (check one with \"x\")\n\n```\n[ ] bug report => search github for a similar issue or PR before submitting\n[x] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\nWhen navigating forward and then back, the scroll position is lost. \n\n**Expected/desired behavior**\nWhen navigating on an extensive list of items, the user scrolls down the list and click on some item. The app activates the next route/component which shows the product details. If the user decides do navigate back, the page does not scroll to the previous point.\n\n**Reproduction of the problem**\n\nLive example: http://plnkr.co/edit/vUROPirs5tjklyBw6t4H?p=preview\nstep 1 - first, adjust browser zoom until heroes from the hero list disappear\nstep 2 - scroll down to the end of the page\nstep 3 - click on \"RubberMan\"\nstep 4 - click on the back button either on the browser or the component\nstep 5 - the page is not scrolled to the same position of stop 2 \n\n**What is the expected behavior?**\nThe browser should scroll to the previous position like it happens in any non-single page application.\n\n**What is the motivation / use case for changing the behavior?**\nIt should be considered a bug that can reduce the level of the user experience.\n\n**Please tell us about your environment:**\n- **Angular version:** 2.0.0-rc.4\n- **Browser:** [all] \n- **Language:** [TypeScript 1.8 | ES5]","author":{"url":"https://github.com/felipedrumond","@type":"Person","name":"felipedrumond"},"datePublished":"2016-08-18T19:35:18Z","url":"https://github.com/angular/angular/issues/10929"}
| 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:58fcc108-d5e9-fab9-8a7d-091e0232abd1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DFC:24A0A:14D7DFB:1A3B04E:6B015E79 |
| html-safe-nonce | a596f68ab3817f7bd3938dffd4ec6518bf0b2424bdce2d53fd56ae720dd95e56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REZDOjI0QTBBOjE0RDdERkI6MUEzQjA0RTo2QjAxNUU3OSIsInZpc2l0b3JfaWQiOiIxMDA4MTIwOTkxODY5NjU2Njk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 822c6287ae40304ba3ea403d20de50d17d8262c7595f664838b2f03249f04a58 |
| hovercard-subject-tag | issue:171982425 |
| 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/10929/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59f92718f1d2a48f162862ce0062137c79c66a4228472f4cf7a762bb6715f4ae/angular/angular/issues/10929 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59f92718f1d2a48f162862ce0062137c79c66a4228472f4cf7a762bb6715f4ae/angular/angular/issues/10929 |
| og:image:alt | I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | felipedrumond |
| 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