Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link with hash not working when it already matches URL (but at different scroll position) #3437

Open
naps62 opened this issue Feb 14, 2025 · 0 comments

Comments

@naps62
Copy link

naps62 commented Feb 14, 2025

Which project does this relate to?

Router

Describe the bug

This seems to be what was suposedly already fixed in #837

@tanstack/start 1.103 and @tanstack/react-router 1.102.5 I'm getting the behaviour described earlier where if the url + hash already match the Link props, nothing actually happens

Your Example Website or App

https://site-git-features-ethui-dev.vercel.app/

Steps to Reproduce the Bug or Issue

  • scroll down a bit, the navbar should show up.
  • click the logo to go back to /#hero, which should scroll back to the top
  • repeating the same steps, the link should no longer work

Expected behavior

The page should navigate back to the hash

Screenshots or Videos

No response

Platform

  • OS: Linux
  • Browser: Chrome
  • Version: 132

Additional context

Pull request refering to the vercel deploy linked above: ethui/site#21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant