Every browser has a native scroll restoration feature. It's called scroll-restoration in the History API, it's enabled by default, and it mostly doesn't work on modern web apps. The reason is Single Page Applications.
When React Router or Next.js handles navigation client-side, the browser never gets a full page load event to trigger its scroll restoration logic. You go back to a long article you