Bug #84942

target _blank is beeing ignored on CType "images" with recordLinks

Added by Webadmin no-lastname-given over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-05-07
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

We configured the recordLinks to support links to a custom extension:

config.recordLinks {
    linkcounter {
       typolink {
           parameter = 1396
           additionalParams = &tx_ffhlinkcounter_pi1[link]={field:uid}&tx_ffhlinkcounter_pi1[linkname]={field:uid}&type=1310
           additionalParams.insertData = 1
           useCacheHash = 1
        } 
    }
}

It's working fine, but as soon as we set a typolink with _blank on an tt_content Item "Images" or "Text with Images", the _blank will be ignored.

Adding

target.data = parameters:target
extTarget.override.data = parameters:target

to the config solves the problem for "Text with Images" but the target-Attribute is still missing for "Images".

On any other Links (i.e. RTE Links) the target="_blank" is rendered as expected.

link.PNG View (26.2 KB) Webadmin no-lastname-given, 2018-05-07 12:34


Related issues

Related to TYPO3 Core - Bug #81620: Linkhandler remove all attributes set in the link wizard and the template Closed 2017-06-19

History

#1 Updated by Elena Bartolotti over 1 year ago

  • Related to Bug #81620: Linkhandler remove all attributes set in the link wizard and the template added

#2 Updated by Elena Bartolotti over 1 year ago

Same problem for me, workarounded with VHS, estracting target from file.link value

<v:condition.string.contains condition="1" haystack="{file.link}" needle="_blank">
    <f:then>
        <f:link.typolink parameter="{file.link}" additionalAttributes="{title:'{file.title}' , target:'_blank'}" >
            <f:render partial="Media/Rendering/Image" arguments="{file: file, data: data, settings: settings}" />
        </f:link.typolink>
    </f:then>
</v:condition.string.contains>

#3 Updated by Riccardo De Contardi over 1 year ago

  • Status changed from New to Needs Feedback

As #81620 has been marked as resolved, could you please test if this issue has been solved, too (see https://review.typo3.org/#/c/57883/ )? Thank you!

#4 Updated by Webadmin no-lastname-given over 1 year ago

Can confirm that it is now working for links built in Fluid, etc. Thanks for the fix!

But it is still not working for CSS Styled Content Type "Images" and "Text / Images".

#5 Updated by Riccardo De Contardi over 1 year ago

  • Status changed from Needs Feedback to Closed

Thank you for your feedback!

We are sorry, but Css_Styled_Content has been marked as deprecated on version 8.7 and removed on version 9, so it is unlikely that it will be fixed for CSC, too; therefore I close this ticket for now; please feel free to reopen it if you think that it is the wrong decision or ping me.

Thank you.

Also available in: Atom PDF