Is it possible to restore the scroll position at page refresh? #214
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm using Hexo to generate my personal website, and the theme
NexTI used provide PJAX support. After enable PJAX, the scroll position back to top of the page on every refresh.Is it possible to restore the scroll position at page refresh?
I am having the same issue. Does anyone have an idea how to fix it?
Okay I found the reason for this behavior:
Pjax sets scrollRestoration to 'manual':
7940a6e3e5/index.js (L26)You can configure this by setting 'scrollRestoration' to false:
@bjoernhasse This solved my problem, thanks!
According to the README
What does this mean?