Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBack to top when changing page. #2156
Comments
@mistic100 Great observation. Scroll behavior should not carry over to the next page. For those wanting to see a reproduction of it, I have a screen recording here: |
Just confirming: I can reproduce this on Firefox, but not in Google Chrome or Safari. |
Correct, on Chrome there is an animation that brings the scroll to the top. (I am not a fan of this animation by the way, it is laggy when it's the first load of a page) |
Hi, I confirm that this bug occurs on Firefox |
Same bug. Any known workaround/hack? I was trying for some time with no luck: afterEach in Vue Router, trying to force timeout with scrollTo 0 but they need user interaction somehow... |
Bug report
Steps to reproduce
What is expected?
I navigate to the top of the "Getting started" page
What is actually happening?
I navigate to the bottom of the "Getting started" page
Other relevant information
I found a bunch of old issues and PR regarding this problem, #1071 #1075 #1107 #1108 and it looks like there where a lot of back-and-forth.
The current behavior is really anoying when using the documentation I am writing, the back to top plugin make a bit more useable but it will be much better to have a standard navigation (when you change page, you start at the top).