[TYPO3-core] RFC #11643: Bug: typoLink() sometime wrongly drops url
Rupert Germann
rupi at gmx.li
Wed Oct 21 12:24:36 CEST 2009
FYI: committed to trunk rev 6211
greets
rupert
Vladimir Podkovanov schrieb:
> 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.
>
More information about the TYPO3-team-core
mailing list