<A> Component: #id Breaking Link
I'm building a docs page for a project I'm working on.
If I create a link with a fragement id pointed to a div on the same page, everything works as expected. The page scrolls to the element with the appropriate id.
But, if I link to another page, nothing happens. I click the link and it doesn't navigate.
Is there an easy fix for this?
2 Replies
Should work just fine:
https://stackblitz.com/edit/github-grada5-xue3np?file=src%2Fapp.tsx
Do you use the latest version of solid router?
I'm on 0.14.1
I solved it. I had some custom navigation and scrolling logic built for the docs site that was breaking things.
@Madaxen86 Thanks for the example. That helped me confirm it wasn't the router.