Images won't show in some pages

This is the home page nav bar
http://localhost:3000

And this is the same navbar, no code difference in another page
http://localhost:3000/shop/Peruvian

http://localhost:3000/shop/ also shows the images, but anything ‘deeper’ than that shows the alt of the logo
And it’s all images, even the footer, not just the navbar. Am using flowrouter
I don’t know where the problem is so I just can’t post all the code here, but I’ll add once I get some insight.
Thanks

Sounds like a relative versus absolute URL issue. Make sure you’re prefixing image paths with a “/” to always start from the root of the public dir, no matter where you are.

3 Likes

Thank you, been battling all sorts of other errors today, just tested it, it worked