Bug #23194
closedaddQueryString dublicates 'id' in url
0%
Description
I have a problem with generated URL for a print link.
Here is a code:
lib.print_link = TEXT
lib.print_link {
value = {$Print}
typolink {
parameter.data = page:uid
addQueryString = 1
addQueryString.method = GET
additionalParams = &print=1
no_cache = 1
title = {$Print}
ATagParams = class="print"
}
}
[globalVar = GP:print > 0]
lib.print_link {
value = {$BackToNormal}
typolink {
additionalParams >
no_cache = 0
addQueryString.exclude = no_cache,print
}
}
[global]
This TS makes such a link:
http://domain.tld/index.php?id=11&no_cache=1&id=11&print=1
As you see, 'id' is generated twice.
This can be solved by not using 'addQueryString', but I need it, since web
has 'tt_news' and other extensions installed and I don't want to write
complicated TS to include all the params manually.
Tried to set: config.uniqueLinkVars = 1 - but that made no effect.
There was a similar bug long time ago: http://bugs.typo3.org/view.php?id=0003241
Changelog contains fix, but seems now it appeared again.
(issue imported from #M15134)