Bug #25300
closedTypolink - AddQueryString - Adds any Params added to URL
0%
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)