Skip to main content
Thomas Deely
Contributor ⭐️⭐️⭐️
May 10, 2024 9:17 PM UTC
Solved

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

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

    ahamburg9
    ahamburg9Answer
    Helper ⭐️⭐️
    May 13, 2024 2:20 AM UTC

    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 2:20 AM UTC

    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

    Translate
    Laurenseife
    Oct 8, 2024 2:45 PM UTC

    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. 

    Translate
    Kenneth R
    Expert ⭐️⭐️
    Oct 9, 2024 1:55 PM UTC

    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>

     

    Translate
    Laurenseife
    Oct 9, 2024 2:21 PM UTC

    Thank you @Kenneth R. I appreciate you!

    Translate
    Laurenseife
    Oct 9, 2024 3:27 PM UTC

    @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!! 

    Translate
    Kenneth R
    Expert ⭐️⭐️
    Oct 10, 2024 9:59 AM UTC

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

    Translate