Updating Content on Page Change

I’ve just built a webpage using codes for wishlist, related items and reviews from Wix Code Resources. I noticed that each time I move to another product page, the wishlist, related items, and reviews would not get refreshed. This is quite problematic as people would be wishlisting the wrong item, or giving reviews on the wrong item. Is there any way to re-execute the code on page change? Thanks.

The link is here,

https://www.ajiaj.com/product-page/eve-lom-卸妝潔面啫喱

Hi!

What do you mean by ‘page change’?
Can you please elaborate on what you’re trying to achieve?

Doron.

Thank you Doron for your time. I realised that when you redirect from a product page to another product page, the OnReady codes do not get runned again, it merely updates the product on page. Another person from Wix code has hinted that they are working on it. Meanwhile, I use the following code which seems to work, but takes quite a lengthy time to load.

$w(’ #productImage ').onClick(() => {
wixLocation.to (product.productPageUrl);
setTimeout(() => {
wixLocation.to (wixLocation.url);
}, 200) })