Issue Bug Closed

#25300Typolink - AddQueryString - Adds any Params added to URL

Daniel Alder 03/10/11, 10:32 updated 11/03/14, 15:06

Description

If you use following example in your TS (typolink with addquerystring option) to generate a link, any parameter will be added to link. Sure this it what it should do, but…

An example:
toplink = TEXT
toplink {
data = LLL:{$FILE.locallang}:topLink
typolink {
parameter.data = TSFE:id
additionalParams.dataWrap = &{getIndpEnv : QUERY_STRING}
additionalParams.if.isTrue.data = getIndpEnv : QUERY_STRING
title.data = LLL:{$FILE.locallang}:topLink
section = anchor
}

wrap = <p class=“gotoTop”>|</p>
}

Type in your Browser:
http://www.yoursite.com/?testparam=blabla

The gotoTop-Link will look like this:
http://www.yoursite.com/?testparam=blabla#anchor

That generated link will be stored if cache will be rewritten (and indexed by search engines) which is very ugly.

There should be an option which allows whitelisting. And not just excluding params.

(issue imported from #M17915)

Reviews 0

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