Skip to content

Conversation

U03KUSHAGRA
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Previously, when clicking a link in the footer that navigates to another page, the page would load starting from the bottom instead of scrolling to the top. This created a confusing user experience, especially on long pages. This change ensures that the page scrolls to the top upon navigation.

What changes are included in this PR?

  • Added logic to scroll the page to the top when a footer link is clicked and a new page is loaded.

Are these changes tested?

  • Yes, the change was manually tested to ensure that the page scrolls to the top after clicking footer links and navigating to a new route.
  • No automated test was added as this involves scroll behavior which is primarily UI/UX and may require integration/UI testing setup.

Are there any user-facing changes?

  • Yes. Users will now see the new page load from the top instead of the bottom when navigating via footer links, improving the browsing experience.

Screenshots (if Applicable)

Not applicable – this is a behavioral fix with no visual UI changes.

Copy link

vercel bot commented Oct 7, 2025

@U03KUSHAGRA is attempting to deploy a commit to the ABHISEK PANDA's projects Team on Vercel.

A member of the Team first needs to authorize it.

@abhisek2004 abhisek2004 self-requested a review October 8, 2025 08:07
@abhisek2004 abhisek2004 added gssoc25 For contribution in Gssoc'25 hacktoberfest 2025 Level-1 Easy Issues labels Oct 8, 2025
Copy link
Owner

@abhisek2004 abhisek2004 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@abhisek2004 abhisek2004 merged commit 19a1b8b into abhisek2004:main Oct 8, 2025
1 check failed
Copy link

vercel bot commented Oct 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dev-elevate Ready Ready Preview Comment Oct 8, 2025 11:19am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc25 For contribution in Gssoc'25 hacktoberfest 2025 Level-1 Easy Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Footer links not scrolling to top of target sections

2 participants