Open in a new tab in Phrases
Hey what's the trick to get to open a link in a new tab when modifying a Phrase?
I tried adding target="_blank" but it keeps getting sanitized...
Hey what's the trick to get to open a link in a new tab when modifying a Phrase?
I tried adding target="_blank" but it keeps getting sanitized...
Yep gotcha. I do think your only bet here is to use a Third-Party Script. Here is an example that just worked fine for me in our sandbox. Big caveat here is that I’m not a developer so please do your own testing if you decide to take this kind of approach. :)
<script>
(function () {
var HREF = "https://example.com/guide"; // exact URL
var timer = setInterval(function () {
var as = document.querySelectorAll('a[href="' + HREF + '"]');
if (as.length) {
as.forEach(function (a) {
a.target = "_blank";
a.rel = "noopener noreferrer";
});
clearInterval(timer);
}
}, 400);
})();
</script>
If you already have a profile on Gainsight Community or Gainsight University, there's no need to create another one. If your email address has changed or you can't remember your login, email community@gainsight.com. Otherwise, continue with the registration below.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.