I want to know how to attach an ID for example at the end of the URL in Next.js and how to retrieve it in the destination page like this ...
<Link href={`/about/${id}`}><a>About</a></Link>
To be like this ...
/about/256983649012
And then retrieve it in the about page.
How can I do that?
And please keep in mind that I'm already aware of this approach ...
<Link href={{ pathname: 'about', query: { id: id }}}><a>About</a></Link>
But I don't really want to the link to be like this about?id=256983649012