Skip to content

Bug: Page scroll position not preserved after route navigation #1180

@jamunatg2006-sys

Description

@jamunatg2006-sys

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlytype:bugBug fixtype:designUI/UX design

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions