[TYPO3-content-rendering] TYPO3 core - links to anchors get prepended with GET parameters

Artur Cichosz artur2000 at gmx.de
Mon May 5 16:49:05 CEST 2014


Hi,

I have a problem with TYPO3 6.1.8.

Each link pointing to an anchor inside the HTML code e.g. `<a href="#some_anchor">go to anchor</a>` gets prepended with the relative path to the TYPO3 root on the server.
Let's say my page is http://somehost.org/my_page/ then the link above gets replaced to `<a href="/my_page/#some_anchor">go to anchor</a>`.

If my page is directly under ducument root, there is no problem with that. My links stay untouched.

But in case I add some GET parameters to the URL, they get prepended as well.

Let's say I call my page like that: `http://somehost.org/?test=abc`.

Now my link looks like this: `<a href="?test=abc#some_anchor">go to anchor</a>`

How can I avoid this replacements? I want some links to stay perfectly untouched.


More information about the TYPO3-project-content-rendering mailing list