Workaround for href=“file://///…” in Firefox

后端 未结 6 648
南方客
南方客 2020-11-27 06:43

On an intranet site, let\'s say I want to link to a file on a share using UNC, at:

\\\\servername\\foldername\\filename.rtf

It seems the co

6条回答
  •  隐瞒了意图╮
    2020-11-27 07:43

    Browsers like Firefox refuse to open the file:// link when the parent HTML page itself is served using a different protocol like http://.

    Your best bet is to configure your webserver to provide the network mapped file as a web resource so that it can be accessed by http:// from the same server instead of by file://.

    Since it's unclear which webserver you're using, I can't go in detail as to how to achieve this.

提交回复
热议问题