My images are stored in the directory
images/icons/artist_default.png
On the homepage, the image is displayed with this path:
http://localhost:7777/images/icons/artist_default.png
However, on a user's page like
http://localhost:7777/user/giorgio-martini
, the path breaks and becomes:
http://localhost:7777/user/images/icons/artist_default.png
This is incorrect as it adds the user parameter before the actual path causing the break.
I am unsure how to resolve this issue without using a complete path. How can I ensure that the img
tag points to the correct location?
Thank you