You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually when clicking the browser's back button, the scroll position of the previous page is preserved. However when using the turbo router this is not the case - the page is always opened at the top.
Would it be possible to somehow make turbo router mimic the default browser behaviour in this situation and preserve the scroll position?
The text was updated successfully, but these errors were encountered:
There is code in place specifically for this and it appears to be working on our side. Here you can see the scroll position is remembered for each snapshot:
@daftspunk I did some more tests and the issue is indeed only present in some scenarios. I was able to reproduce it on a default OctoberCMS installation like so:
Open the default demo page
Scroll to the footer and click "AJAX Demo"
Click the browser's back button
You are returned to the top of the home page instead of to the bottom. When turbo router is disabled the scroll position is correctly preserved.
Usually when clicking the browser's back button, the scroll position of the previous page is preserved. However when using the turbo router this is not the case - the page is always opened at the top.
Would it be possible to somehow make turbo router mimic the default browser behaviour in this situation and preserve the scroll position?
The text was updated successfully, but these errors were encountered: