Project

General

Profile

Actions

Bug #78043

closed

Can't create local anchors using RTE

Added by David Voigt over 7 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Start date:
2016-09-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
rtehtml
Complexity:
medium
Is Regression:
No
Sprint Focus:
On Location Sprint

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&quot;>

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.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #62723: Cache poisoning with prefixLocalAchorsClosed2014-11-05

Actions
Related to TYPO3 Core - Bug #65934: Move prefixLocalAnchors to compatibility6ClosedBenni Mack2015-03-23

Actions
Related to TYPO3 Core - Bug #84111: CKeditor: custom section / anchor links (external) will result in page=current#section linksClosed2018-03-02

Actions
Actions

Also available in: Atom PDF