Image in public folder not loading in dynamic page

I have made a images folder in public folder (public/images). In static page (ex : /homepage), I add <image src=“images/image-name.png”, it work well, but with dynamic page (ex: /product/:productId), image can’t be loaded. Thanks

The path to the image should start with /, so it becomes an absolute path, otherwise the web browser will interpret it as a relative path to the current page (e.g. images/image-name.png on the page /product/5 will be interpreted as /product/images/image-name.png)