Monday, May 4, 2009

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

1 comment:

Mel said...

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