• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RM 1.2 How to open URLs in new tab

#1
Hi there,
I want to open link in new tab for following URL input in add resources.
Additional Information URL:
Alternative Support URL:

How can i make URL open in new tab.

Thanks in advance!
 
#3
Hi Chris,
Thanks for the reply, I have added target="_blank" to following
Code:
<xen:if is="{$xenOptions.allowAltResourceSupportUrl} and {$resource.alt_support_url}">
        <a class="callToAction" href="{$resource.alt_support_url}" {xen:if '!{$resource.isTrusted}', 'rel="nofollow"', 'target="_blank"'}><span>
            {xen:phrase ask_questions_get_support}
        </span></a>
    </xen:if>
It's not working. could you please check
 

Chris D

XenForo developer
Staff member
#4
You added it in the wrong place, meaning it would only actually add it under certain conditions. Try this:
Code:
<a target="_blank" class="callToAction" href="{$resource.alt_support_url}" {xen:if '!{$resource.isTrusted}', 'rel="nofollow"'}><span>