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:
- Open Core.js in Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\INC
- Look for the line with the text "Hyperlink.arrAllowedProtocols"
- Add the necessary protocol to the list of protocols below
- Return to a web browser and press Ctrl + F5 to force a reload of cached javascript files
- Insert the previously outlawed protocol link to test
Comments