Presently, I am utilizing nuxt and vue routing for my web application.
In my view, I'm creating my link in the following manner:
<nuxt-link :to="'/article/' + article.id">
Afterwards, I extract this article ID on my article page by retrieving the parameter from the URL to make my API request:
${params.id}
While this method works well, the URL structure ends up like article/1. However, I would like to transition to user-friendly URLs such as article/this-is-my-article while still being able to pass the article id.
Is there a way to pass this ID to nuxt-link through a prop or is there an alternative method to transmit this ID 'invisibly' so it can be used for my API call?