Skip to content
Snippets Groups Projects

[BUGFIX] Do not prepend siteUrl in RTE when handler keyword is present

Merged Marco Huber requested to merge mhuber84/tinymce4_rte:master into master
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -101,8 +101,8 @@ define(['jquery', 'TYPO3/CMS/Recordlist/LinkBrowser'], function($, LinkBrowser)
input = 'id=' + input.substr(5);
}
// if it's no mail or external link, we always prepend the siteUrl
if (input.indexOf('mailto:') !== 0 && !attributes['data-htmlarea-external']) {
// if there is no handler keyword (mailto:, record:, etc) or an external link, we always prepend the siteUrl
if (!/^\w+:/.test(input) && !attributes['data-htmlarea-external']) {
input = RteLinkBrowser.siteUrl + '?' + input;
}
Loading