Issue Bug Closed

#92527f:link.typolink does not respect additionalParams

Chris no-lastname-given 10/09/20, 13:04 updated 03/07/25, 04:37

Description

The `additionalParams` parameter in the `typolink` viewhelper is not respected.

Using the example from the [documentation](https://docs.typo3.org/other/typo3/view-helper-reference/10.4/en-us/typo3/fluid/latest/Link/Typolink.html) it returns the following link:

<f:link.typolink parameter="{link}" additionalParams="&u=b"
    target="_blank"
    class="ico-class" title="some title"
    additionalAttributes="{type:'button'}"
    useCacheHash="true"
>
   Linktext
</f:link.typolink>

This translates to

<a href="myfile.doc" title="some title" target="_blank" class="ico-class" type="button">Linktext</a>

The `u=b` is not added to the link.

Debugging the variable `$typoLinkParameter` in the viewhelper (line 130) retuns

file:1414 _blank ico-class "some title" &u=b

Reviews 4