Consider having 2 routes:
/products - displays a list of products
-/:id - displays details of a specific product
When a URL is provided for the above routes, the /products
route must be able to access the /:id
parameter in order to highlight that product as 'selected' in its list.
What is the best method to retrieve the /:id
in the /products
route?