Scroll Restoration behavior #1257
-
|
Hi everyone, I'm having a hard time understanding how the scroll restoration works. I have a list of links on a route (A), and when I scroll a bit and click on a link, it opens my new page (B) but already scrolled down, as much as the first page (A). What I'd want is to always go to the top of the page for a specific route (A) and keep the scrolled position on another (B). I tried to remove the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
The ScrollRestoration is not for new navigations, but for going back, if you scroll on a page, go to another page, and then go back (with the browser back button) it will restore the scroll to where the user was before going to the second page |
Beta Was this translation helpful? Give feedback.
-
|
The behavior is the same as the browser, and it's based on locations, not URLs.
For example:
If you are not experiencing this behavior then something is wrong with your app or we have a bug that isn't manifesting for many people. |
Beta Was this translation helpful? Give feedback.

The behavior is the same as the browser, and it's based on locations, not URLs.
For example:
/and scrolls down 100px/contact/If you are not expe…