Description
When navigating between pages/routes within the application, the scroll position is not handled consistently. Users may return to the top unexpectedly or lose their previous reading position after navigating back.
Steps to Reproduce
Open a page with enough content to scroll.
Scroll down to a lower section.
Navigate to another internal route/page.
Use back navigation or return to the previous page.
Observe the scroll behavior.
Expected Behavior
Previous scroll position should be restored when navigating back.
OR
App should consistently reset to top (depending on intended behavior).
Actual Behavior
Scroll position resets inconsistently / previous position is lost, affecting navigation experience.
Impact
Poor UX for users reading long content pages
Extra scrolling required after navigation
Inconsistent route behavior
Possible Cause
Missing scroll restoration handling in router/navigation lifecycle.
Suggested Fix
Implement scroll restoration logic:
Save scroll position before route change
Restore on back navigation
Ensure consistent top-scroll on fresh route loads
Description
When navigating between pages/routes within the application, the scroll position is not handled consistently. Users may return to the top unexpectedly or lose their previous reading position after navigating back.
Steps to Reproduce
Open a page with enough content to scroll.
Scroll down to a lower section.
Navigate to another internal route/page.
Use back navigation or return to the previous page.
Observe the scroll behavior.
Expected Behavior
Previous scroll position should be restored when navigating back.
OR
App should consistently reset to top (depending on intended behavior).
Actual Behavior
Scroll position resets inconsistently / previous position is lost, affecting navigation experience.
Impact
Poor UX for users reading long content pages
Extra scrolling required after navigation
Inconsistent route behavior
Possible Cause
Missing scroll restoration handling in router/navigation lifecycle.
Suggested Fix
Implement scroll restoration logic:
Save scroll position before route change
Restore on back navigation
Ensure consistent top-scroll on fresh route loads