Issue Bug Closed

#98065TypoScript image file link with target _blank

Benjamin Robinson 08/02/22, 10:44 updated 10/04/22, 14:19

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.

Reviews 0

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