Project

General

Profile

Actions

Bug #23194

closed

addQueryString dublicates 'id' in url

Added by Viktor Livakivskyi over 14 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-07-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Actions

Also available in: Atom PDF