When I use the next/link
component to link my pages together, I ended up having to specify both the "server side" URL and the queryparam-eterized URL.
An example could be a dynamic /post/:id
route that is served by the pages/post.js
file:
<Link href="/post?id=2" as="/post/2"><a>Go to post number 2</a></Link>
Is there a different way to do this? It's cumbersome to remember to do this everywhere I want to have a dynamic route.