Bug #98065
closedTypoScript image file link with target _blank
0%
Description
I have a simple image gallery where some images are linked to PDFs, which should open in a new window:
tt_content.imagegallery = FILES
tt_content.imagegallery{
references.fieldName = image
renderObj = COA
renderObj {
stdWrap.typolink.parameter.data = file:current:link
10 = IMAGE
10.file.import.data = file:current:publicUrl
}
}
The links stored in the backend look like this `t3://file?uid=1822 _blank`
I get the following error:
The UID of file has to be numeric. UID given: "1822 _blank"
If I set a static link-parameter via TypoScript …
stdWrap.typolink.parameter = t3://file?uid=1822 _blank
… there is curiously no error.
The issue occurred with Typo3 version 11.5.11. and the cause is likely to be [bugfix e16fd7cba6]1.
Updated by Oliver Hader over 2 years ago
- Related to Bug #80896: TypolinkViewhelper with linkhandler ignores class attribute added
Updated by Oliver Hader over 2 years ago
Probably a regression introduced with https://review.typo3.org/c/Packages/TYPO3.CMS/+/74620
Updated by Felix Nagel over 2 years ago
The patch from #80896 had issues but should have been fixed with #97869
References:
https://github.com/TYPO3-CMS/frontend/commit/cd1773114a9ff45e9cbf6e30812028fd1609a8a1
https://github.com/TYPO3-CMS/frontend/commit/8855a1512a261791d918481a5a2d2add8ed5633b
Updated by Benjamin Robinson over 2 years ago
Felix, if I understand you correctly, the issue might have already been fixed with #97869? It is being released with version 11.5.14, isn't it? I would like to test it, but I can't find a LinkFactory.php file under typo3_src-11.5.13/typo3/sysext/frontend/Classes/Typolink/ (there is e.g. a LinkResultFactory.php). Was the file newly added?
Updated by Benjamin Robinson over 2 years ago
I could not find the Patch in 11.5.14, which was released today. I don't really understand the repository yet, but suspect it's because the patch was only pasted for the branch main, but not for branches 10.4 and 11.5.
Updated by Oliver Hader over 2 years ago
- Related to Bug #97869: typolink with returnLast returns also more information than just the URL added
Updated by Oliver Hader over 2 years ago
Corresponding change in the Gerrit (in the mono-repository):
https://review.typo3.org/c/Packages/TYPO3.CMS/+/75046
→ obviously it has not been back-ported yet to TYPO3 v11
Updated by Oliver Hader over 2 years ago
- Status changed from New to Resolved
Patch for TYPO3 v11 (to be released in v11.5.15) was merged.
Please create a new issue in case you still experience problems. Thx!