Skip to main content
Solved

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

  • May 10, 2024
  • 6 replies
  • 51 views

Thomas Deely

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
Forum|alt.badge.img+2
  • Helper ⭐️⭐️
  • Answer
  • 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

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
Forum|alt.badge.img+5
  • 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

Thank you @Kenneth R. I appreciate you!


Laurenseife

@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
Forum|alt.badge.img+5
  • Expert ⭐️⭐️
  • October 10, 2024

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