Collection not updating when dynamic URL parameter changes on detail page

Hello,

I have a product list page and a “Product Detail” page using a dynamic URL parameter (product ID). The detail collection is filtered by that parameter, exactly as shown in the WeWeb Academy.

It works the first time. But when I go back to the list and click another product, the URL updates correctly, yet the detail page still shows the previous product.

I would like to avoid manually adding “fetch” workflow actions on each navigation.

Is the collection supposed to automatically update when the URL parameter changes?

Hi @Farouk :waving_hand:

Can you check if the “Preserve on navigation” option is disabled on your collection?

If it is enabled, the collection will not be fetched again with the new info: Intro to collections | Documentation

yes, it works, thanks @Joyce

1 Like