Issue Bug Closed

#81316linkhandler does not respect custom typolink configuration

Jens Engelmann 05/23/17, 17:15 updated 10/07/19, 12:00

Description

When using a link field (e.g. header_link) in TypoScript the recordLinks (linkhandler configuration) don’t respect any configuration.

Let’s say I want to render a link out of the header_link field and give it a certain class.

10 = TEXT
10 {
  value = foobar
  typolink {
    parameter.field = header_link
    ATagParams = class="foobar"
  }
}

When I set a regular link type (page, file, external url) I get the wanted result like

<a href="..." class="foobar">foobar</a>

But when I use linkhandler configured link type (e.g. for news) the ATagParams and everything else (like returnLast or something) are ignored.

<a href="...">foobar</a>

This makes them unusable since the link generation is not consistent over link types.

It might be strongly related to https://forge.typo3.org/issues/80896 and https://forge.typo3.org/issues/80895

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.