Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

html link to local shortcut to open in firefox to specific webpage

  • 8 replies
  • 1 has this problem
  • 19 views
  • Last reply by Grifte

more options

This is for a corporate environment and as such we have certain restraints.

On our intranet we have a link that points directly to the external website which no longer works with IE. For compatibility reasons our default web browser must remain as IE. This Website works fine with Firefox.

I have changed the link to point to a local shortcut: file:///x:link.lnk This shortcut points to: "C:\Program Files\Mozilla Firefox\firefox.exe" https://externalwebsite.com

Which works perfectly from IE, but does nothing from firefox.

Have tried adding: user_pref("capability.policy.policynames", "localfilelinks"); user_pref("capability.policy.localfilelinks.sites", "file:///x:link.lnk"); user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

To no avail. Any assistance would be most appreciated.

This is for a corporate environment and as such we have certain restraints. On our intranet we have a link that points directly to the external website which no longer works with IE. For compatibility reasons our default web browser must remain as IE. This Website works fine with Firefox. I have changed the link to point to a local shortcut: file:///x:link.lnk This shortcut points to: "C:\Program Files\Mozilla Firefox\firefox.exe" https://externalwebsite.com Which works perfectly from IE, but does nothing from firefox. Have tried adding: user_pref("capability.policy.policynames", "localfilelinks"); user_pref("capability.policy.localfilelinks.sites", "file:///x:link.lnk"); user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess"); To no avail. Any assistance would be most appreciated.

All Replies (8)

more options

Why can't you just copy and drag the link to create a shortcut to open it on the desktop? I done go to site and highlight the link and left mouse button drag and create a shortcut link and it works fine for either IE or firefox. But alot depends on what is the default browser or what the user chooses from the icon what is the default browser as well.

more options

I think this line --

user_pref("capability.policy.localfilelinks.sites", "file:///x:link.lnk");

-- needs to list the site where local links are launched from, for example:

user_pref("capability.policy.localfilelinks.sites", "http://intranet");

Does that work?

more options

WestEnd said

Why can't you just copy and drag the link to create a shortcut to open it on the desktop? I done go to site and highlight the link and left mouse button drag and create a shortcut link and it works fine for either IE or firefox. But alot depends on what is the default browser or what the user chooses from the icon what is the default browser as well.

Tried this, no luck, same issue.

more options

WestEnd said

Why can't you just copy and drag the link to create a shortcut to open it on the desktop? I done go to site and highlight the link and left mouse button drag and create a shortcut link and it works fine for either IE or firefox. But alot depends on what is the default browser or what the user chooses from the icon what is the default browser as well.

The default browser must remain as IE. So if the user has the intranet open in IE. They need to click on a link and this link opens in Firefox. What I have done works perfectly from IE.

However if they are already using Firefox, and they click this same link, nothing happens. No popups, no dialogs, no warnings just nothing.

more options

Now this is strange any link or shortcut you created will open in the default Browser. It's just a link.

So what does the link in IE compare to FF?

more options

can you detect the useragent of the browser via javascript on that site? then you could serve users on IE the link on your local filesystem and users who are already on firefox the intended website...

more options

WestEnd said

Now this is strange any link or shortcut you created will open in the default Browser. It's just a link. So what does the link in IE compare to FF?

The only difference is that in IE, I am pointing to a locally saved shortcut which opens Firefox to a specific website. So if I am already in Firefox, that same shortcut is pointing to Firefox. It is like trying to open Firefox with Firefox, as opposed to opening Firefox with IE.

more options

philipp said

can you detect the useragent of the browser via javascript on that site? then you could serve users on IE the link on your local filesystem and users who are already on firefox the intended website...

This is an excellent idea and if I were not stuck in a corporate environment and using the very limiting back office environment our intranet uses it would work perfectly. However due to the limitations of our intranet back office and the corporate road blocks, this is not a viable option for me. Hopefully this answer will help someone else in the future.