The Solution to Invalid Protocol Links in SharePoint

A client of mine recently had an issue where he wanted to insert a direct link to a FileMaker Pro document (e.g. fmp://...) in SharePoint. Both the rich text and source editors were stripping out the link, making life even more miserable for my FileMaker Pro-dependent client.

It turns out that SharePoint controls the list of allowed protocols in a static .js file, and not in Central Administration, as one might be inclined to assume.

Here's the solution:

  1. Open Core.js in Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\INC
  2. Look for the line with the text "Hyperlink.arrAllowedProtocols"
  3. Add the necessary protocol to the list of protocols below
  4. Return to a web browser and press Ctrl + F5 to force a reload of cached javascript files
  5. Insert the previously outlawed protocol link to test

Comments

Unknown said…
Does this solution works for Sharepoint 2010? Do we find Core.js in the same folder name? Thanks

Popular posts from this blog

Programmatically Update Page Layouts

Microsoft Virtualilzation Headaches

ERROR: Failed to create feature receiver...