How can I insert a hyperlink and have it open a NEW page?

I am inserting hyperlinks into my definitions. I would like to have links inside of my definitions, so a user can have words inside of the definition defined for them if they're unsure.

The problem I am having is that when I insert a link in my definition, and I click on it, the link opens up in my current window. So in order to go back to my original definition, I have to use the back key.

I want to be able to insert a link, and have the link open a brand new page. Is this possible?


4 answers

1 accepted


Please have a quick read over the following two documents

They should show you how to use a bit of JQuery to inject some properties into links of a given class. This will allow you to specify that all external links be open in a new tab.

I would recommend the Link Window macro, part of the Linking plugin from CustomWare. It works nicely, and the little icon next to the link (optional) tells the user the target will open in a new window.

It's a free plugin by the way.

If your site has the HTML macro enabled, you can enter a link with a target in HTML code. For example:

{html}<a href="" target="_blank"> Edit a page</a>{html}

You can insert HTML code from the Editor either as Wiki Markup, using the syntax above, or by choosing Other Macros from the Insert menu and selecting the HTML macro from the list. (In that case just enter the HTML):

<a href="" target="_blank"> Edit a page</a>

The Confluence Editor (v. 4.3) inserts a line break before and after embedded HTML code, so if you want to include links in running text, you have to include the text as part of the HTML.

The other solutions offered so far are more elegant, but I'm not an admin, and my company doesn't allow third-party plugins, so this was the best workaround available to me.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

345 views 20 10
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you