As per Appian 21.1 (https://docs.appian.com/suite/help/21.1/Web_Link_Component.html) now we should be able to open the link on same tab.
I tried testing this but the link opens in new tab regardless of the value that is set to the parameter openLinkIn
Test Code in 21.1.
a!sectionLayout( contents: { a!linkField( links: { a!safeLink( label: "Safe Link", uri:"">https://appian.com/", openLinkIn:"SAME_TAB" ) } ) } )
Discussion posts and replies are publicly visible
Are you getting this behavior in the Interface Designer, or somewhere else?
Also I assume this might just be a copying error but it looks like your uri string has an extra leading ">" symbol at the moment:
Mike,
Created sample application and tested it on tempo.
Regarding ">" in uri it was added automatically when I submitted my post in community .
I just tried and confirm that the "SAME_TAB" functionality works as expected both on a site as well as in a Tempo report - using both a!linkField() as well as my preferred method, which is a Rich Text Display field with a link added.
If you try different browser(s) does the behavior stay the same for you?
Not sure what is the issue at my end as its straight forward settings.
Let me give one more try if that doesn't work will work with product support team.
Yep, that's what I was going to recommend too
hi manjunathb58, have you found the solution for this?I am facing the same issue , in application site it is working fine but in my case in designer and in embedded interface it always opens links in new tab.
Mike Schmitt We are also facing same issue. Any solution to open safelink in the same tab from embedded interface.
Sandya said:Any solution to open safelink in the same tab from embedded interface
can you describe your "embedded interface" in any more detail? If I had to guess, I'd think this feature might possibly be internally disabled in such a case, to prevent the parent interface from being clicked away from inadvertently.
Absolutely! Here's a shorter solution and troubleshooting steps:
Problem: The a!safeLink component isn't opening the link in the same tab, even with openLinkIn: "SAME_TAB" setting.
a!safeLink
openLinkIn: "SAME_TAB"
Potential Causes:
Troubleshooting:
Workaround:
If none of the above works, temporarily use this workaround to force opening in a new tab:
Code:
a!safeLink( label: "Safe Link", uri: "">https://appian.com/", openLinkIn: "SAME_TAB")
Srinivas
Thanks for quick response. a!link function is not available.