Sidebar navigation doesn't reset scroll position when switching pages
Author: SATYA-916Created Aug 21, 2026Updated Aug 21, 2026
Describe the bug When navigating between pages using the sidebar (e.g., Products, Invoices, Customers), the new page loads at the same scroll position as the previous page instead of resetting to top.
Note: this is different from PR #531, which fixed the sidebar's own scroll/overflow CSS. This issue is about the main content area not resetting scroll position when navigating between pages.
To Reproduce
- Go to a page with a long list (e.g., Products or Invoices)
- Scroll down
- Click a different sidebar link (e.g., Customers)
- Observe: new page loads mid-scroll instead of at top
Expected behavior Page should scroll to top when navigating to a new route.
Environment
- Browser: Google Chrome 151.0.7922.170 (64-bit)
- OS: Windows
Source: idurar/idurar-erp-crm