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?
Alright it would seem that in Firefox what I am attempting is intentionally not allowed according to Mossop on #firefox (irc.mozilla.org):