Bug #92527

f:link.typolink does not respect additionalParams

Added by Chris no-lastname-given 14 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-10-09
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Also available in: Atom PDF