make external links open in new tab

2 コメント

  • Nicole S.
    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.

    0
  • 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";
    }

     

     

    0

サインインしてコメントを残してください。

Powered by Zendesk