We're updating the issue view to help you get more done.Learn more

Add a whitelist for valid types of links when autolinking

Autolinking should use a system-wide list of url schemes (plus the defaults).

Rename the Customization > Link Previews section of the System Console to Customization > Posts and add the following setting below the "Enable Link Previews" setting:

Custom URL Schemes [ E.g.: "test123, test456" ]
Allow message text to link if it begins with any of the URL schemes listed here. By default, the following protocols will create links: "http", "https", "ftp", "tel", and "mailto".

Config setting ``CustomUrlSchemes`` should be added to the ServiceSettings section of config with an empty default value.

------

Note that "http", "https", "ftp", "tel", and "mailto" should autolink without needing to be specified, and cannot be removed.

Status

Mana

4

Assignee

Harrison Healey

Reporter

Harrison Healey

Fix versions

Mattermost Team

Apps

Sprint

None

QA Assignee

Linda Mitchell

QA Test Steps

See description

QA Testing Areas

System Console
Messages