Skip to content

[FEATURE] Maintain scroll position across page navigation #437

Description

@dev-palwar

Summary

The page doesn't preserve the user's scroll position. After scrolling down, navigating away, and returning, the page always resets to the top, forcing the user to scroll back to where they were.

on the - https://opensox.ai/dashboard/oss-programs

scoll-issue.mp4

Problem

This is a classic scroll position restoration issue. Every time we navigate away and come back, the page resets to the top instead of restoring the previous scroll position.

Proposed Solution

Store the current scroll position when the user leaves the page (or route) and restore it on navigation back. The scroll state should be restored only after the page content has been rendered to avoid jumping to an incorrect position.

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions