fix: scroll-to-top on footer navigation links#66
Merged
HimanshuHeda merged 2 commits intoHimanshuHeda:mainfrom Aug 28, 2025
Merged
fix: scroll-to-top on footer navigation links#66HimanshuHeda merged 2 commits intoHimanshuHeda:mainfrom
HimanshuHeda merged 2 commits intoHimanshuHeda:mainfrom
Conversation
|
@Shreyas-TP is attempting to deploy a commit to the Himanshu Heda's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ Deploy Preview for ziptales ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Thanks for creating a PR for your Issue!
|
Owner
|
@Shreyas-TP Please resolve the conflicts |
Contributor
Author
|
I’ve resolved the merge conflicts in App.tsx, Chatbot.tsx, Footer.tsx, ArticleDetail.tsx, and Login.tsx. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #33
Description
Previously, when users clicked footer links (e.g., About Us, Contact, Privacy Policy, Terms of Service), the new page content loaded but retained the previous scroll position. This caused confusion as users often remained at the bottom of the new page and didn’t immediately see the content.
This update ensures that whenever a footer link is clicked and a new page loads, the scroll position resets to the top of the page.
Changes Made:
Implemented automatic scroll-to-top on route change/navigation.
Tested with all footer links (Quick links, Categories and Connect sections ) to confirm correct behavior.
How to Test:
Result:
Users can now immediately see the new content without needing to scroll manually.