X
點擊此處開啟此網站的行動版。

技術支援討論區

Is there a way to make firefox open hyperlinks to local files?

已張貼

My company has a custom developed ticketing system and of course its developed for IE but none of the engineers like IE. We all use and want to continue using Firefox. One of the sections in the ticketing system has a spot for links to local files on a shared drive. I have created the link and it points to a word document. That hyperlink works fine in IE but it does nothing when clicked in Firefox.

Of course the dev team is giving me the age old line ".NET doesn't play nice with Firefox... developed for IE.... blah blah use IE."

Surely creating a link to a local file like excel or word or even a directory is simple idea and should be accomplished somehow with FireFox right? Can anyone shed some light on this and give a suggestion how to make this work?

For example: N:\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx i am trying to share with a hyperlink like:

Looking for any suggestions on how to make this work. Thank you so much!!

My company has a custom developed ticketing system and of course its developed for IE but none of the engineers like IE. We all use and want to continue using Firefox. One of the sections in the ticketing system has a spot for links to local files on a shared drive. I have created the link and it points to a word document. That hyperlink works fine in IE but it does nothing when clicked in Firefox. Of course the dev team is giving me the age old line ".NET doesn't play nice with Firefox... developed for IE.... blah blah use IE." Surely creating a link to a local file like excel or word or even a directory is simple idea and should be accomplished somehow with FireFox right? Can anyone shed some light on this and give a suggestion how to make this work? For example: N:\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx i am trying to share with a hyperlink like: <a href=file://companyname.local\Shares\Services\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx Looking for any suggestions on how to make this work. Thank you so much!!

被選擇的解決方法

I think there are two aspects to this:

(1) URL format

If you navigate to that file using the browser's Open File dialog (Ctrl+O), you can get the workable link format for it. For example, the separators will be forward slashes instead of backslashes.

(2) Local file security

Firefox limits access from pages on web servers to pages on local disk or UNC paths. This article has more info: Links to local pages do not work - MozillaZine Knowledge Base. This extension provides a workaround: LocalLink (I haven't tried it myself).

從原來的回覆中察看解決方案 2

額外的系統細節

已安裝的外掛程式

  • Next Generation Java Plug-in 10.25.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • LogMeIn, Inc. Remote Access Components
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Shockwave Flash 11.7 r700
  • Google Update
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.03
  • Citrix Online App Detector Plugin
  • iTunes Detector Plug-in
  • 5.1.20125.0
  • IE Tab 2 Plug-in for Mozilla/Firefox
  • Intel web components updater - Installs and updates the Intel web components
  • Intel web components for Intel® Identity Protection Technology
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0

更多資訊

提出問題者

Sorry, that got mangled because of the hyperlink i posted.

This is the link to the file i want to open: N:\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx

I try making the link with this. This works in IE. file://companyname.local\Shares\Services\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx

Sorry, that got mangled because of the hyperlink i posted. This is the link to the file i want to open: N:\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx I try making the link with this. This works in IE. file://companyname.local\Shares\Services\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx

由 kwoodhouse 於 修改

jscher2000
  • Top 10 Contributor
8693 個解決方法 71065 個答案

選擇的解決方法

I think there are two aspects to this:

(1) URL format

If you navigate to that file using the browser's Open File dialog (Ctrl+O), you can get the workable link format for it. For example, the separators will be forward slashes instead of backslashes.

(2) Local file security

Firefox limits access from pages on web servers to pages on local disk or UNC paths. This article has more info: Links to local pages do not work - MozillaZine Knowledge Base. This extension provides a workaround: LocalLink (I haven't tried it myself).

I think there are two aspects to this: (1) URL format If you navigate to that file using the browser's Open File dialog (Ctrl+O), you can get the workable link format for it. For example, the separators will be forward slashes instead of backslashes. (2) Local file security Firefox limits access from pages on web servers to pages on local disk or UNC paths. This article has more info: [http://kb.mozillazine.org/Links_to_local_pages_do_not_work Links to local pages do not work - MozillaZine Knowledge Base]. This extension provides a workaround: [https://addons.mozilla.org/en-US/firefox/addon/locallink/ LocalLink] (I haven't tried it myself).

提出問題者

Hi, Thanks for the reply.

I was able to install that addon and get links working. I had to remove all spaces from the directories and file names though as the spaces would turn into % and would cause issues with the link opening correctly.

I will keep testing. Thanks again.

Hi, Thanks for the reply. I was able to install that addon and get links working. I had to remove all spaces from the directories and file names though as the spaces would turn into % and would cause issues with the link opening correctly. I will keep testing. Thanks again.
jscher2000
  • Top 10 Contributor
8693 個解決方法 71065 個答案

In a URL, a space can be represented by %20 but it's easier to replace them with underscores (_) in the file and folder names.

In a URL, a space can be represented by %20 but it's easier to replace them with underscores (_) in the file and folder names.