Skip to content

Scroll to Top on Route Change #113

@Alexandrbig1

Description

@Alexandrbig1

Priority: Medium
Difficulty: Easy
Type: Frontend (React + Vite)


Description

When users navigate between pages in our single-page application (SPA), the scroll position should reset to the top of the page.
Currently, if a user scrolls down on one page and navigates to another (e.g., from Home to About or Collections), they remain at the same scroll position, which can cause confusion.

This task will improve UX consistency by ensuring that each route loads from the top.


Acceptance Criteria

  • When navigating between any routes, the page automatically scrolls to the top.
  • Works for all internal route changes (SPA navigation).
  • No performance issues or layout shifts introduced.

Metadata

Metadata

Labels

frontendTasks related to the frontend (React, Vite, TailwindCSS, UI components, pages)good first issueGood for newcomershacktoberfestSpecial issue for Hacktoberfesthacktoberfest-2025Special issue for Hacktoberfest 2025priority: mediumImportant but not urgentreactReact components & UI logic

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions