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.
Updated by Markus Klein over 4 years ago
- Related to Bug #81620: Linkhandler remove all attributes set in the link wizard and the template added
Updated by Felix Nagel over 2 years ago
Can confirm this issue for TYPO3 10.4.27. Every change to parameter will break the attributes rendering. Not only parameter.stdWrap but parameter.override and parameter.if.
The issue is explained here: https://forge.typo3.org/issues/80896#note-14
Updated by Felix Nagel over 2 years ago
- Due date set to 2017-04-20
- Start date changed from 2020-02-17 to 2017-04-20
- Follows Bug #80896: TypolinkViewhelper with linkhandler ignores class attribute added
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74534
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74534
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74576
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74576
Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74576
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74620
Updated by Gerrit Code Review about 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74620
Updated by Gerrit Code Review about 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74620
Updated by Gerrit Code Review about 2 years ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74620
Updated by Felix Nagel about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e4cc573a0ad08dfe52548e02a7eb91f7af1b461d.
Updated by Gerrit Code Review about 2 years ago
- Status changed from Resolved to Under Review
Patch set 4 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74576
Updated by Gerrit Code Review about 2 years ago
Patch set 5 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74576
Updated by Felix Nagel about 2 years ago
- Status changed from Under Review to Resolved
Applied in changeset e16fd7cba61d0f732592f40d3886ec1a2493b248.
Updated by Benni Mack about 2 years ago
- Related to Bug #97869: typolink with returnLast returns also more information than just the URL added
Updated by Christian Kuhn about 2 years ago
- Related to Bug #98108: Regression with nested parameter for typolink added
Updated by Benni Mack almost 2 years ago
- Status changed from Resolved to Closed