Hi all,

I have my drupal site set up and clean url is on.If i create a new block and place an image in it, it works fine untill I go to e.g. www.mysite.com/node/23

The image code is correct but the image is missing.e.g.

<a href="my-page-link" title="My Page Link Title"><img src="sites/all/images/my-image.png" alt="My Image" /></a>

If i check it out in firebug the image is listed as not found with the following path

http://www.mysite.com/node/sites/all/images/my-image.png

Is anyone able to explain this or point me in the right direction, as I am not sure what the problem is or even what to search for.

Thanks

Comments

nevets’s picture

You need a path relative to the sites root, so 'sites/all/images/my-image.png' should be '/sites/all/images/my-image.png'.

baxr6’s picture

I found it after about an hour of searching.Thank you much appreciated.