history.scrollRestoration = 'auto'
to enable automatic scroll restoration when navigating back.You want your Webflow site to refresh when users navigate back using the browser’s back button, but you also want to retain scrolling position. By default, browsers cache session history and try to preserve scroll position, but Webflow behaves more like a Single Page Application (SPA), which can interfere with that behavior if you're using custom page transitions or script-based navigation.
location.reload()
), remove it. This forces a hard reload and resets the scroll position.Link
, Navbar
, Collection List links
, etc.) use normal anchor-based navigation, which works with browser history and scroll restoration by default.window.scrollTo(0, 0)
or scroll-behavior: smooth
on body elements).window.history.scrollRestoration
APIInsert this small snippet in Custom Code → Footer Code or in Page Settings → Footer:
```js
```
This tells the browser to handle scroll position automatically, especially when navigating with back/forward buttons.
To allow users to return to a refreshed page while keeping the scroll position, avoid forcing reloads and custom page transitions. Use Webflow’s default navigation and enable browser-native scroll restoration with a small script to ensure consistent behavior.