Skip to content
Snippets Groups Projects
Commit 7b3c32e7 authored by Markus Klein's avatar Markus Klein Committed by Jigal van Hemert
Browse files

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

Resolves: #71510
Releases: master
Change-Id: I4d7b67dc94c284d0b816aa41578e411ca6c26101
Reviewed-on: https://review.typo3.org/44713


Reviewed-by: default avatarMarkus Sommer <markussom@posteo.de>
Tested-by: default avatarMarkus Sommer <markussom@posteo.de>
Reviewed-by: default avatarOliver Eglseder <oliver.eglseder@in2code.de>
Reviewed-by: default avatarJigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: default avatarJigal van Hemert <jigal.van.hemert@typo3.org>
parent 4abd1801
Branches
Tags
No related merge requests found
......@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment