Question
I created a direct link to an HTML file on an intranet file server. I have tried various formats for the link but cannot get Mozilla to open the link. It just sits there when clicked. The link on the TWiki page works for IE and Opera but not Mozilla.
The link looks like:
[[file:///\\server\c\DOCS\Important\page.html Important Page]]
I have tried:
file://///server/c/DOCS/Important/page.html
file:///%5C%5Cserver%5Cc%5CDOCS%5CImportant%5Cpage.html
But they don't work in Mozilla when clicked on. If I cut and paste them into the location bar, it loads fine. :^/
It seems to be a Mozilla issue but I wanted to confirm the behavior with TWiki users. Any thoughts?
Environment
--
AlanDayley - 26 Sep 2003
Answer
Here I am answering my own question.
Mozilla considers links to files on a the network, like file://///server/c/Test/This/File.html to be a security risk. Therefore, the default setting disables the ability to load such a link.
The following is how to change the setting so that such links work.
- Open the Mozilla\default\pref\all.js file in an editor. On Windows 2000 this file is at "C:\Program Files\mozilla.org\Mozilla\defaults\pref\all.js" (Mozilla 1.4).
- Edit the line "pref("security.checkloaduri", true);"
- Change "true" to "false"
- Save the file and restart Mozilla.
I pulled this solution from
Mozilla bug 107540
.
I hope this helps someone! Helps me.
--
AlanDayley - 26 Sep 2003
Thanks for providing this solution! I've added this to
MozillaBrowserIssues, which is linked from
BrowserIssues.
--
RichardDonkin - 29 Sep 2003