<Link> doesn't work with hash activated
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.9k
- Forks
- 190
- Avg merge
- 12h 50m
- Merged PRs (30d)
- 3
Description
I'm using hash and trying navigations as follow:
1st: Links (not work)
2nd: Links with hash (not work)
3rd: Links with hash with click (weird but works)
4th: navigate using buttons (normal, works)
Here's the reproduction code.
What's causing the problem?
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the navigation cases in the linked CodeSandbox, especially hash-based navigation with and without a click, and compare them with button navigation. Trace the hash routing and Link entry points to identify why only the clicked case works. Done means links navigate correctly under hash routing without requiring an unusual click path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100