The most common form of links are those that link web pages together. This tutorial shows you how to link to pages within Confluence and also on external sites...
Linking to Pages
To link to a page within the current space, simply enclose the page title in square brackets:
Which results in:
Links
To link to a page in another space, simply prefix the page title with the space key. For example, to link to the "Links" page within our Builder Feature tour (which lives in our ADAPTAVIST space), use the following:
Which results in:
Links
Of course, you can add custom on-screen text and tooltips to any of these links:
Which results in:
Links Tutorial
Links Feature Tour
Automatically Creating Pages
If you link to a page on your own site that does not yet exist, the resulting link will automatically generate the page ready for editing when clicked on by someone who has edit privileges in that area:
People who do not have edit privileges will see a broken link:
[USERGUIDE:My New Page]
However, anyone with edit privileges, such as yourself, will be able to click the link to create the page.
So why is this useful? When you are creating pages, you will often be aware that they need to link to other pages which may not have been created yet - simply add in the link and once your page is complete click all the links to missing pages to create and edit them.
Linking to External Sites
Linking to pages on external sites uses similar notation to pages within your own site, only you use a full URL instead:
Which results in:
http://jarrod.adaptavist.com
Jarrod's Edge
Jarrod's Edge
As you can see, external links have a green arrow next to them. You can also use a shortcut to the first version of the links shown above by simply adding the URL to your page:
Which results in:
http://jarrod.adaptavist.com
Hints and Tips
Whenever you link to pages within your own Builder account, you should always try to use the notation shown at the start of this tutorial because it enables Builder to automatically update the links should you rename or move a page.
Frequently Asked Questions
| Q |
I've used CamelCase links on other Wiki systems to link to pages - does that work with Confluence? |
| A |
Yes, but it's not enabled by default. To enable CamelCase links, use the Administration Console. |
| Q |
Is it possible to create a link that makes a new page based on a specific template or boilerplate? |
| A |
Yes. Use either the [add-page macro] or the [link-page macro]. |
How can you link to an external page in a new window?
Thanks,
Charlie (new to Confluence)
I am wondering the same thing. How to link to an external page (or site) and open it in a new browser window. I can't find anything in the documentation that speaks to this, so I'm assuming it can't be done?
Janet (new to Confluence)
Ditto! This would be a really nice feature...
Unfortunately there is no way to configure Confluence to open external links in new windows by default, but you can use the link-to macro to open links in new windows.
can you please give an example of using link-to macro to open external links in new windows: it's not really obvious from the documentation...
I couldn't even reply with Firefox 2: the RTE doesn't work. I had to use IE6.
Anyway, the link-to macro doesn't work for this. I use the menulink macro:
target blankCode:
(menulink:custom|target=_blank|link=http://www.adaptavist.com/display/USERGUIDE/menulink+macro)target blank(menulink)
Does the external link support additional parameters like disabling toolbar, setting browser size etc etc. (All the standard stuff you do in javascript links)
No, but you can use the new window user macro to do that:
http://confluence.atlassian.com/display/CONFEXT/New+Window+User+Macro