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)
Updated by Alexander Opitz about 11 years ago
- Category deleted (
Communication) - Status changed from New to Needs Feedback
- Target version deleted (
0) - Is Regression set to No
Hi,
As this issue is a bit old, does this issue still exists in newer TYPO3 CMS Versions (6.1.5)?
Updated by Viktor Livakivskyi about 11 years ago
Well, code above, provided by me still produces same double 'id' in URI at 6.0.
But I've added now:
lib.print_link.typolink.addQueryString.exclude = id
And this helps. I don't know, why it didn't came into my mind 3 years ago, but this issue may be safely closed.
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed