Skip to main content
Thomas Deely
Contributor ⭐️⭐️⭐️
May 10, 2024
Solved

Is it possible to open a new tab from a quick link?

  • May 10, 2024
  • 6 replies
  • 84 views

Is it possible to open a new tab from a quick link?

    Best answer by ahamburg9

    Hey Thomas,

     

    As an Admin in the quick links widget you can edit each tile. Within the edit of each tile at the bottom near the save button you can check the “open in tab”.

     

    Hope this helps!

     

    Thanks,

    Anthony

    6 replies

    ahamburg9
    ahamburg9Answer
    Helper ⭐️⭐️
    May 13, 2024

    Hey Thomas,

     

    As an Admin in the quick links widget you can edit each tile. Within the edit of each tile at the bottom near the save button you can check the “open in tab”.

     

    Hope this helps!

     

    Thanks,

    Anthony

    Laurenseife
    October 8, 2024

    My question is a take on this 2.0. 

     

    Does anyone know if any of the button can open in a new tab? I tried the banner button and it does not have this option. If it comes down to it, we’ll hack it with a QL, but it’s not what we’re looking for. 

    Kenneth R
    Expert ⭐️⭐️
    October 9, 2024

    Hi @Laurenseife - there’s no out-of-the-box way to change this for links that aren’t immediately configurable, but you can do something with a small script if you need to.  If you add this bit of JS, for example, into your Third-Party Scripts, it will make the banner button open in a new tab:

    <script type="text/javascript">
    document.addEventListener('DOMContentLoaded', function() {

    var buttons = document.querySelectorAll('.banner-notification_url');

    buttons.forEach(function(button) {
    button.setAttribute('target', '_blank');
    });
    });
    </script>

     

    Laurenseife
    October 9, 2024

    Thank you @Kenneth R. I appreciate you!

    Laurenseife
    October 9, 2024

    @Kenneth R, I’m trying to apply the code in sandbox- testing each of the sections in the third-party scripts area, and it’s not working as expected.

    In this scenario, do I ping my CSM for a few mins/ are you able to offer addl guidance? Thank you in advance!! 

    Kenneth R
    Expert ⭐️⭐️
    October 10, 2024

    Hi @Laurenseife - I’ll send you a DM and take a look with you.  :)