views:

3840

answers:

2

In my documentation web pages, I often need to provide links to locations, files and applications (.xbap) stored on the intranet.

In IE, this works fine with URLs formatted like this:

<a href="file://///company.org/ProjectA/StatsReport">Go to folder</a>
<a href="file://///company.org/ProjectA/Readme.txt">Download file</a>
<a href="file://///company.org/ProjectA/Dashboard.xbap">Run xbap</a>

These links all work fine under IE, but in Firefox they don't.

Does anyone know how I can format the above links to work both in IE and Firefox?

Edit The above link actually work if I put them in a local file. They stop working only in Firefox when they are part of a html file on the network (not on my machine). There must be some kind of security setting in Firefox that prevents file:/// links from working coming from external content?

+1  A: 

just use

file:///

works in IE, Firefox and Chrome as far as I can tell.

see http://msdn.microsoft.com/en-us/library/aa767731(VS.85).aspx for more info

DrG
agreed. 3 slashes is plenty.
Cheekysoft
Not for network paths, which needs 2 extra slashes.
Anthony Brien
+2  A: 

You could check out this link, or you could try using UNC paths.

Lucas
That's right. The file:/// links are correct, but Firefox has a setting to prevent file:/// links from external web sites. I'll try the LocalLink extension.
Anthony Brien
It looks like this is also disabled in Chrome (tested on version 4.1).
Dan Tanner