Bug #78043
closedCan't create local anchors using RTE
0%
Description
I can't create internal anchor links using the RTE because TYPO3 always prepends links to content elements with the URL with which I'm currently logged in. This is the result I expect:
<a href="#c123">
This is what I get:
<a href="http://domain.tld/index.php?id=1#c123">
I'm creating an email newsletter, but imho this has nothing to do with it. When I look at the source code of the generated page in my browser, all anchors are prefixed. My page does not have a <base href="...">
It makes no difference if I'm using realurl or not, or if I even have a URL record in my system's root page, I have tried it with and without.
# we don't need baseURL here config.baseURL > # we need this so images and other resources are being loaded in email newsletter config.absRefPrefix = http://domain.tld/ # Set this to 0 for local anchor functionality (this doesn't have any effect) config.prefixLocalAnchors = 0
Using TYPO3 7.6
There have been a few related tickets but those were very old (TYPO3 4.x) and are therefore likely to have different causes.
This might be related with https://forge.typo3.org/issues/65934 but using compatibility6 extension didn't affect this behaviour.