make external links open in new tab

2 댓글

  • Nicole Saunders
    Zendesk Community Team

    Hi Joe,

    It's possible there might be a way to do this with some custom code, but there is not an out-of-the-box setting for this functionality.

  • uncle_joe

    Thanks. I did some digging around and added this to the JS script which seems to work (I need to test and make sure some more):

    var links = document.links;
    for (var i = 0; i < links.length; i++) {
      if ( links[i].href.indexOf( "my_support_domain" ) == -1 )
        links[i].target = "_blank";




댓글을 남기려면 로그인하세요.

Zendesk 제공