Bug #90404
closedLinkhandler removes all attributes set in fluid viewhelper if parameter uses stdWrap
100%
Description
After an update from v8 to v9 link handler does not work correctly anymore:
The link is generated, but all attributes set in the viewhelper (like classes) are removed.
There is an old issue created by myself which was solved: https://forge.typo3.org/issues/81620
The problem is now slightly different: The classes remain available as long as the PageId is specified directly in the configuration as parameter, but this is not possible in my case because I get the PageId from a relation.
config { recordLinks { myext { typolink { parameter.stdWrap.cObject = CONTENT parameter.stdWrap.cObject { table = tx_myext_domain_model_product select { uidInList.data = field:uid pidInList = root recursive = 99 orderBy = tx_myext_domain_model_product.uid max = 1 selectFields = tx_myext_domain_model_category.page leftjoin = tx_myext_domain_model_category ON tx_myext_domain_model_product.category = tx_myext_domain_model_category.uid } renderObj = TEXT renderObj { field = page } } additionalParams { data = field:uid wrap = &tx_myext_products[product]=|&tx_myext_products[action]=show&tx_myext_products[controller]=Product insertData = 1 } useCacheHash = 1 ATagParams.data = parameters:allParams target.data = parameters:target title.data = parameters:title } } } }
If I replace the whole parameter section with just "parameter = 57" (which is one of the correct pageIds) the linkhandler works as expected.
If I use the linkhandler in the RTE everything is fine and the link is generated correctly with the classes set.
<f:link.typolink parameter="{link}" class="btn"> generates <a href="the_rendered_link"> and removes the class completely.