Mike
Mike

Reputation: 1738

using / to indicate root directory

This is probably a stupid question, but its hard to search for effectively. I am have defined the following:

<img src='/images/image_name.ico' />

This properly creates the path to the root directory then the images directory in all of the browsers I have tested, including IE10, but IE9 will not get the path right. Is there a known problem with using / to indicate the site root with IE 9? I just get a broken image even though the file exists at that path.

Upvotes: 0

Views: 296

Answers (1)

Quentin
Quentin

Reputation: 943569

No. There are no known issues with IE's ability to resolve root relative URIs.

The usual debug steps you should take are: Check your server logs and browser debug tools to see what is actually being requested, if the request was successful, and if the correct content-type is being specified. Make sure the image file is OK. Check the browser can resolve the URL and open the image directly (without going through a webpage).

Upvotes: 2

Related Questions