cancel
Showing results for 
Search instead for 
Did you mean: 

How does link target work?

Former Member
0 Kudos

We have a CMSLinkComponent with the URL specified and the link target = newWindow. But the system fails to open the link in a new window. In fact it renders as a plain HTML link. Is there something we are missing to get the link to open in a new window?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

No target="_blank" does not appear in the HTML.

Former Member
0 Kudos

Ok there debug CMSLinkComponentRenderer to find out why not

Former Member
0 Kudos

Upon trying to debug the CMSLinkComponentRenderer I realized we weren't using the CMSLinkComponent directly but instead were building an HTML link and pulling out the URL. I fixed this to use the cmsLinkComponent.tag

Answers (1)

Answers (1)

Former Member
0 Kudos

Does the HTML link have: target="_blank"? This is what should be rendered if it is supposed to open in a new window