Project

General

Profile

Actions

Bug #90404

closed

Linkhandler removes all attributes set in fluid viewhelper if parameter uses stdWrap

Added by Kevin Appelt almost 5 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2017-04-20
Due date:
2017-04-20
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #81620: Linkhandler remove all attributes set in the link wizard and the templateClosed2017-06-19

Actions
Related to TYPO3 Core - Bug #97869: typolink with returnLast returns also more information than just the URLClosedBenni Mack2022-07-07

Actions
Related to TYPO3 Core - Bug #98108: Regression with nested parameter for typolinkClosed2022-08-09

Actions
Follows TYPO3 Core - Bug #80896: TypolinkViewhelper with linkhandler ignores class attributeClosed2017-04-19

Actions
Actions #1

Updated by Markus Klein almost 5 years ago

  • Related to Bug #81620: Linkhandler remove all attributes set in the link wizard and the template added
Actions #2

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

Actions #3

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
Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

Updated by Gerrit Code Review over 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

Actions #11

Updated by Gerrit Code Review over 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

Actions #12

Updated by Gerrit Code Review over 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

Actions #13

Updated by Felix Nagel over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Gerrit Code Review over 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

Actions #15

Updated by Gerrit Code Review over 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

Actions #16

Updated by Felix Nagel over 2 years ago

  • Status changed from Under Review to Resolved
Actions #17

Updated by Benni Mack over 2 years ago

  • Related to Bug #97869: typolink with returnLast returns also more information than just the URL added
Actions #18

Updated by Christian Kuhn over 2 years ago

  • Related to Bug #98108: Regression with nested parameter for typolink added
Actions #19

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF