Development

Bug with file:/// in IE and Firefox

Today I discovered an interesting bug in both Internet Explorer (IE 6 SP1, SP2; and 7) with regards to file:/// while working on a local web application. As for Firefox, unfortunately support for hrefs with file:/// in it is horrendous.

So we have a network share via the F:\ where we store all our pdf documents. When a user visits a company profile in the web application, they get a list of links to files pertaining to that company. Those links look something like this:

<a href=”F:\documents\id2304\20080403_comp_info.pdf” target=”_blank”>20080403_comp_info.pdf</a>

Though today I discovered that there’s an issue when there’s a hash sign in the filename, like so:

<a href=”F:\documents\id2304\example_#_file.pdf” target=”_blank”>example_#_file.pdf</a>

Different browsers respond differently when I click on the link, though none of them will render the url properly. On the other hand I can copy the link and paste it in the Start / Run command and it works fine.

Anyone else come across this before?

1 Comment

Add Comment

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*Required Fields