Skip to content
Snippets Groups Projects
Commit 2d2755e4 authored by Marco Huber's avatar Marco Huber
Browse files

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

parent cdef73a0
No related branches found
No related tags found
1 merge request!4[BUGFIX] Do not prepend siteUrl in RTE when handler keyword is present
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment