Project

General

Profile

Actions

Bug #101432

closed

f:link.page "target" attribute not respected

Added by Daniel Corn 10 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2023-07-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

If I specify the "target"-attribute on a <f:link.page> node it will be overwritten with _self.

<f:link.page pageUid="{settings.pages.homePageUID}" 
             additionalAttributes="{'data-target':'home'}" 
             target="home"></f:link.page>

It looks like my attributes are overwritten by the attributes coming from the LinkFactory (https://git.typo3.org/typo3/typo3/-/blob/main/typo3/sysext/fluid/Classes/ViewHelpers/Link/PageViewHelper.php#L186-L187).


Files

screen.png (123 KB) screen.png debug output V12.4.7 PageViewHelper line 187 and 190 Helmut Strasser, 2023-10-03 07:34
Actions

Also available in: Atom PDF