Add support for additional URL schemes
Purpose and Scope
This document explains how to create links to external locations (resources outside the intranet) in ThoughtFarmer and how to enable additional URL schemes when required.
ThoughtFarmer provides two methods for linking to external resources:
Creating a Link content type in navigation
Adding a link within the Rich Text Editor (RTE)
For security reasons, ThoughtFarmer restricts which URL schemes can be used by default.
Default Supported URL Schemes
By default, links can only target URLs beginning with the following schemes:
httpsftpfilewebcal\\mailto
The first part of a URL (for example, https, ftp, or mailto) is referred to as the URL scheme.
If a link uses an unsupported URL scheme, it will fail unless that scheme has been explicitly enabled by an administrator.
Example:
A link using skype: will not work unless the skype scheme has been added to the allowed configuration settings.
Add Support for Additional URL Schemes
Important:
Modifying these configuration settings requires familiarity with regular expressions. If you are unsure, submit a request to ThoughtFarmer Helpdesk for assistance.
Administrators can enable additional URL schemes through configuration settings in the Admin Panel.
Enabling Additional URL Schemes for Link Content (Navigation Links)
Allow the Scheme
Go to Admin Panel > Advanced > Configuration Settings.
Search for: page.externalLink.allowedSchemes
Click Edit.
Enter the new URL scheme (for example,
skype) in the Value field.Click Save.
Update Link Validation
After adding the scheme, complete one of the following options:
Option A (Recommended): Update Validation Regular Expression
On the Configuration Settings page, search for: link.browser.url.validation.allowable.prefixes
Click Edit.
Add the new URL scheme to the regular expression.
Click Save.
Option B (Not Recommended): Disable Link Validation
⚠️ This will disable validation for all links going forward.
Search for: link.browser.url.validation.enabled
Click Edit.
Set the value to false.
Click Save.
Enabling Additional URL Schemes for Rich Text Editor (RTE) Links
Allow the Scheme in HTML Scrubbing
Go to Admin Panel > Advanced > Configuration Settings.
Search for: scrubHtml.allowedSchemes
Click Edit.
Enter the new URL scheme in the Value field.
Click Save.
Update Link Validation
After updating the allowed schemes, complete one of the following:
Option A (Recommended): Update Validation Regular Expression
Search for: link.browser.url.validation.allowable.prefixes
Click Edit.
Add the URL scheme to the regular expression.
Click Save.
Option B (Not Recommended): Disable Link Validation
⚠️ This will disable validation for all newly created links.
Search for: link.browser.url.validation.enabled
Click Edit.
Set the value to
false.Click Save.
Comments
0 comments
Please sign in to leave a comment.