story:
I am on the product page #/product/7, and on the same page I have 4 more products that are similar to the one that is being viewed. All these products have links to their pages:
router-link(:to="{ name: 'product', params: { id: product.id }}" v-text='product.title').
problem:
When I click on any of the product links, the URL changes, but the content remains the same. So, if I am on #/product/7and clicking #/product/8, then the URL will change. If I go from the page /product/:idand click on the product, it will return me to the desired page with the appropriate content.

As you can see in the screenshot, the current product identifier is 15, but the content is one of the identifier 7, as shown in the url below, while I was hovering over the Sleek Silk Shirt product in the basket. Any ideas how to fix this?
source
share