react-router-hash-link
react-router-hash-link copied to clipboard
Supplying only a hash includes the pathname
Suppose this link on the, I dunno, the /contact
page:
<HashLink to="#top">Top</HashLink>
This will produce:
<a href="/contact#top">Top</a>
What's that /contact
doing there? It's not supposed to be there. I didn't specify a link to the current page, but only to a hash.
To reproduce:
Looks like this issue is no longer there.