Merge pull request #506 from m-tartari/fix/nav-scroll

🐛 fix(router): ensure window scrolls to top on route change
This commit is contained in:
2025-06-16 16:14:48 +02:00
committed by GitHub
@@ -13,6 +13,10 @@ const RouteTracker = () => {
analytics.page()
}, [analytics, location])
useEffect(() => {
window.scrollTo(0, 0)
}, [location])
return <Outlet />
}