[TYPO3-core] RFC #11643: Bug: typoLink() sometime wrongly drops url
Vladimir Podkovanov
admin at sitesfactory.ru
Wed Aug 5 22:05:48 CEST 2009
Hi all,
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=11643
Branches: TYPO3_4-1, TYPO3_4-2, trunk
Problem:
When typoLink() produces link to section it checks if the link goes to
the same page and if there are no additional params added to the link
and if so url is dropped and only section left. But it fails in such case:
say you have current url: /?index.php&id=1¶m1=aaa¶m2=bbb
and conf for typolink:
typolink {
parameter = #anchor
addQueryString = 1
addQueryString.exclude = param1,param2
}
the result link should be ?index.php&id=1#anchor
but it is just #anchor
it happens so because only result query string is checked and if all
parameters are filtered out then the string is empty
Solution:
If 'addQueryString' key is set and 'addQueryString.' key exists too then
url can't be dropped.
--
-rgds-
Vladimir
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug_11643.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090806/050e9d8e/attachment.txt
More information about the TYPO3-team-core
mailing list