Issue Bug Closed

#78043Can't create local anchors using RTE

David Voigt 09/22/16, 16:03 updated 05/07/19, 12:17

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:

This is what I get:

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.