Show only slug in url but need id aswell, possible?
Unanswered
American Sable posted this in #help-forum
American SableOP
<Link href={
I will pass down the ID to the params but show the slug in url, but the slug can be the same in many so thats why i have the key to item.id aswell.
But is this possible to passdown the ID as params, but show the slug only in url?
Like http://localhost:3000/uppdrag/front-end-developer
instead of http://localhost:3000/uppdrag/1
For example
/uppdrag/${item.id}} as={/uppdrag/${slug}} key={${item.id}}>I will pass down the ID to the params but show the slug in url, but the slug can be the same in many so thats why i have the key to item.id aswell.
But is this possible to passdown the ID as params, but show the slug only in url?
Like http://localhost:3000/uppdrag/front-end-developer
instead of http://localhost:3000/uppdrag/1
For example