reset sidebar scroll top to 0 when navigating between sections of the site
When going from Blog -> Docs, the Sidebar should reset scroll state top to 0.
Can do this by keeping track of last section in localStorage and checking.
could do this with history.pushState and a popstate event listener and pjax-standalone (or similar)
As of testing today,
Navigating between Docs and Blog, the sidebar position does not change. When you select Blog, then on the sidebar try to select Docs, as Docs is the first item in the list, you would scroll all the way up to select Docs.
As a test case:
- I did a partial scroll to reveal a part of Docs
- Clicked on the Docs link
- Sidebar position does not change.
Navigating between direct links (https://aframe.io/blog/) and (https://aframe.io/docs) does reset the sidebar position.
I know this issue is almost 8 years old, @ngokevin @dmarcos does this issue still need to be looked at?