X
Tap here to go to the mobile version of the site.

Support Forum

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

Posted

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.
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; rv:11.0) like Gecko

More Information

WestEnd
  • Top 25 Contributor
61 solutions 5340 answers

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.

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.
Was this helpful to you? 0
Quote
jscher2000
  • Top 10 Contributor
8578 solutions 70132 answers

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?

I think this line -- <blockquote> user_pref("capability.policy.localfilelinks.sites", "file:///x:link.lnk"); </blockquote> -- needs to list the site where local links are launched from, for example: user_pref("capability.policy.localfilelinks.sites", "http://intranet"); Does that work?
Was this helpful to you? 0
Quote

Question owner

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.

''WestEnd [[#answer-1202599|said]]'' <blockquote> 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. </blockquote> Tried this, no luck, same issue.
Was this helpful to you?
Quote

Question owner

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.

''WestEnd [[#answer-1202599|said]]'' <blockquote> 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. </blockquote> 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.
Was this helpful to you?
Quote
WestEnd
  • Top 25 Contributor
61 solutions 5340 answers

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?

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?
Was this helpful to you?
Quote
philipp
  • Top 25 Contributor
  • Moderator
5281 solutions 23332 answers

Helpful Reply

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...

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...
Was this helpful to you? 2
Quote

Question owner

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.

''WestEnd [[#answer-1202698|said]]'' <blockquote> 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? </blockquote> 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.
Was this helpful to you?
Quote

Question owner

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.

''philipp [[#answer-1202802|said]]'' <blockquote> 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... </blockquote> 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.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.