Skip to content

Bug: Page retains scroll position when navigating between pages #55

@Vaibhavkg04

Description

@Vaibhavkg04

Describe the bug

When navigating between pages in the application, the new page does not load from the top (default scroll position). Instead, it opens at the scroll position of the previous page. This behavior creates a confusing user experience, as users expect new pages to start from the top.

To Reproduce

  1. Navigate to Home page.
  2. Scroll down to a random position .
  3. Use navigation bar to move to other page (eg-about).
  4. Observe that other does not load from the top but retains the scroll position.

Expected behavior

When navigating to a new page, the scroll position should reset to the top of the page (scrollTop = 0).

Add Screenshots or Recordings

No response

Please provide the environment you discovered this bug in

No response

Anything else?

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions