Bug #101432
closedf:link.page "target" attribute not respected
100%
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
Updated by Helmut Strasser 7 months ago
- File screen.png screen.png added
Tried to reproduce this on v11, v12 and v13. Works like expected.
target="home" is rendered as it is, as well as all other allowed values like _blank, _self etc.
Updated by Daniel Corn 7 months ago
I went down the rabbit hole :D
The problem seems to occur if `config.intTarget` is set (https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Setup/Config/Index.html#inttarget).
Updated by Gerrit Code Review 7 months ago
- Status changed from New to Under Review
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/+/81312
Updated by Gerrit Code Review 7 months 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/+/81313
Updated by Gerrit Code Review 7 months 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/+/81312
Updated by Helmut Strasser 7 months ago
Sorry for the mess. Created new commit instead of amending the old one.
https://review.typo3.org/c/Packages/TYPO3.CMS/+/81313 has been abandoned.
Updated by Gerrit Code Review 7 months 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/+/81312
Updated by Gerrit Code Review 7 months 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/+/81312
Updated by Gerrit Code Review 7 months ago
Patch set 5 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/+/81312
Updated by Gerrit Code Review 7 months ago
Patch set 6 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/+/81312
Updated by Gerrit Code Review 7 months ago
Patch set 7 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/+/81312
Updated by Gerrit Code Review 7 months ago
Patch set 8 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/+/81312
Updated by Gerrit Code Review 7 months ago
Patch set 9 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/+/81312
Updated by Gerrit Code Review 7 months ago
Patch set 10 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/+/81312
Updated by Gerrit Code Review 7 months ago
Patch set 1 for branch 12.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/+/81359
Updated by Helmut Strasser 7 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6c460759e0b1821a25b6cca5cbafe057f9b5e4b4.