When using Link for routing and then pressing the browser's back button, the page will not remember the previous scroll position.
For example, go from page1 to page2 and then click the back button. page1 is rendered at the top of the viewport.
The browser is keeping track of the scroll position because if the page is refreshed it will refresh at the appropriate position. Is this an issue with the History API?
When using
Linkfor routing and then pressing the browser's back button, the page will not remember the previous scroll position.For example, go from
page1topage2and then click the back button.page1is rendered at the top of the viewport.The browser is keeping track of the scroll position because if the page is refreshed it will refresh at the appropriate position. Is this an issue with the History API?