I have the following route structure
src/routes/[slug]/results
src/routes/[slug]/about
I can’t figure out how to link to the routes in SvelteKit. The routes themselves work when I access them through the browser navigation bar.
How can I create a simple links on the [slug] page, that will link to the child routes?
Both below link to the root:
<a href="results">results</a>
<a href="/results">results</a>
Tried something like below, but that didn’t work.
<a href="/:slug/results">results</a>
<a href="/[slug]/results">results</a>
I assume it’s something similar, but the SvelteKit documentation on routing and advanced routing don’t mention related to navigation within dynamic routes.