It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Set link to open into a new tab

How do I set an embedded website link to open into a new tab?

2 answers

Hi @Natalie Sollock 

Below are the instructions on how you will force the external or internal links to open in a new tab.

How to Force External & Internal Links to Open in New Tab

Yes, it is impossible to do that. Sometimes, we create a page that has a lot of links embedded on it. It is annoying that when you click the link it leaves the current page. Well, there is a solution on that, here's how;

  • Note that most of external links automatically open in a new tab
  • In this case, we are forcing internal links to open in a new tab
  • Add a HTML Macro
  • Paste below source code
<script>
jQuery(document).ready(function() {
jQuery(".wiki-content a").attr("target", "_blank");
});
</script>

Regards,

Jeffry

Hi @Natalie Sollock 

Below are the instructions on how you will force the external or internal links to open in a new tab.

How to Force External & Internal Links to Open in New Tab

Yes, it is impossible to do that. Sometimes, we create a page that has a lot of links embedded on it. It is annoying that when you click the link it leaves the current page. Well, there is a solution on that, here's how;

  • Note that most of external links automatically open in a new tab
  • In this case, we are forcing internal links to open in a new tab
  • Add a HTML Macro
  • Paste below source code
<script>
jQuery(document).ready(function() {
jQuery(".wiki-content a").attr("target", "_blank");
});
</script>

Regards,

Jeffry

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

283 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you