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

This widget could not be displayed.


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.

This widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

I use ‘HTML Link’ Macro to do this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

547 views 7 6
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