href prop not working on `Link` component?
I am confused. What am I missing?
https://stackblitz.com/edit/tanstack-router-tn3dvcbd?file=src%2Froutes%2Findex.tsx
I have a Link component with
href
set to "https://google.com". I would expect this to display an anchor with that URL4 Replies
like-gold•9mo ago
link is not for external targets
just use an <a>
subsequent-cyanOP•9mo ago
OK thanks for the info!
What is the href attribute about then? 🤔
like-gold•9mo ago
href is calculated by router for internal links
so that you can open an internal link in a new tab
subsequent-cyanOP•9mo ago
OK! Thanks for the quick support, that's awesome 🙏