Links

You can create links to pages, blog posts, anchors, attachments, external websites, JIRA issues and more.  Links can be text or images, and can be added in many different ways.

Links to pages within your Confluence site are relative, which means that you can move pages and rename pages without breaking links. 

This page explains the most common ways to create links. 

To insert a link on a page:

  1. Select some text or position your cursor where you want to insert the link
  2. Choose Link on the toolbar or use the keyboard shortcut Ctrl+K
  3. Select a page, blog post or attachment, or enter an external URL (see below for how to link to particular types of content)
  4. Enter or modify the link text (this is the text that will appear on the page. If this field is left blank, the page name or URL will be used as the link text.)
  5. Choose Insert

Alternatively you can type followed by the page or attachment name. Autocomplete will suggest matching items for you. 

On this page:

Related pages:

You can also paste a URL directly onto your page. Confluence will automatically create the link, and if the URL is for a page in the current site, the page name will be set as the link text.

  1. Select an image on your page
  2. Choose Link on the Image Properties toolbar
  3. Select a page, blog post or attachment, or enter an external URL (see below  for how to link to particular types of content)
  4. Choose Insert
  1. Select the link text or image
  2. Choose Edit from the link properties toolbar
  3. Modify the link and choose Save

 

 

  1. Select the link text or image
  2. Choose Unlink from the properties toolbar

Confluence supports many methods for creating links. Some of the common ones are listed here. 

Type of link Ways to do this
Link to a page

Choose Link > Search then enter part of the page name.

Choose Link > Recently viewed and select a page from the list.

Type [ and enter part of the page name then select the page from the list.

Paste the URL of the page onto your page (Confluence will automatically create the link).

Link to a page in another space

Choose Link > Search enter part of the page name and select All Spaces from the drop down.

Choose Link > Advanced then enter the space key followed by the page name spacekey:mypage.

Type [ and enter part of the page name then select the page from the list.
(you can hover over each suggestion to see which space the page is from).

Link to a blog post

Choose Link > Search and enter part of the blog post name.

Type [ and enter part of the blog post name then select the blog post from the list.

Link to an attachment or image on this page

Choose Link > Attachment then upload or select an attachment from the list.

Type [ and enter part of the attachment file name then select the attachment from the list.

Link to an attachment on another page

Choose Link > Search and enter part of the attachment name.

Type [ and enter part of the attachment file name then select the attachment from the list
(you can hover over each suggestion to see which space the page is from).

Link to a website

Choose Link > Web Link then enter the website URL.

Type or paste the URL onto the page (Confluence will automatically create the link).

Link to an email address

Choose Link > Web Link then enter the email address.

Type or paste the email address onto the page (Confluence will automatically create a 'mailto:' link).

Link to an anchor on a page

Choose Link > Advanced then enter the anchor name in one of the formats below.

For an anchor on this page: #anchor name.

For an anchor on another page in this space: page name#anchor name.

For an Anchor on another page in another space: spacekey:page name#anchor name.

See Anchors for more information on using anchors.

Link to a heading on a page

Choose Link > Advanced then enter the heading in one of the formats below. Heading text is case sensitive and must be entered without spaces.

For a heading on this page: #MyHeading.

For a heading on another page in this space: Page Name#MyHeading.

For a heading on another page in another space: spacekey:Page Name#MyHeading.

Be aware that these links will break if you edit the heading text. Consider using the Table of Contents macro or an Anchor instead.

Link to a comment on a page

Go to the comment, right click the Date at the bottom of the comment and copy the link. Paste the link directly onto your page or choose Link > Web Link and paste in the URL.

Type [$ then enter the Comment ID ('12345' in this example):  [$12345]

Link to an undefined page
(a page that does not exist yet)

Choose Link > Advanced then enter the new page name (a page will be created on click).

Type [ then enter the new page name then choose Insert link to create page .

See Undefined Page Links for more information on undefined pages.

Link to a personal space or user profile

Choose Link > Search then enter the user's name and select their personal space homepage or their profile from the list.

Type [ then enter the user's name and select their personal space homepage or their profile from the list.

Link to a JIRA issue
(where Confluence is connected to JIRA) 

Paste the JIRA issue URL - Confluence will automatically create a JIRA Issue macro.

The best way to link to a Confluence page from outside Confluence, for example on a website or in an email message, is to use the tiny link which is a permanent URL. This ensures that the link to the page is not broken if the page name changes.

To access the permanent URL for a page:

  1. View the page you wish to link to.
  2. Choose Tools > Link to this page.
  3. Copy the Tiny Link.
  4. Use the tiny link in your website or email message. 

You do not need to use the tiny link to link to pages within your Confluence site. Confluence automatically updates links when you rename or move a page to another space. 

If you want to link to specific content such as anchors, headings or comments you need to use the following link syntax.  Note that there are no spaces in the page name, anchor name or heading text.

In the examples below, the anchor name is 'InsertLinkAnchor' and the heading text is 'Insert a link'. 

Some things to note when linking to anchors from a website or email message:

  • The page name is repeated in the URL, after the # sign. The second occurrence of the page name is concatenated into a single word, with all spaces removed.
  • There is a single dash (hyphen) between the concatenated page name and the anchor name.
  • The anchor name in the full URL is concatenated into a single word, with all spaces removed.
  • The anchor name is case sensitive. You must use the same pattern of upper and lower case letters as you used when creating the Anchor.

You can add a link to a comment by using the comment URL (a permanent link), or by using wiki markup to link to the Comment ID.  

To find out the comment URL and comment ID:

  1. Go to the comment you wish to link to
  2. Choose the Date at the bottom of the comment and examine the URL

The number after 'comment-' is the Comment ID. An example is shown here. 

https://confluence.atlassian.com/display/DOC/Working+with+Links?focusedCommentId=368640803#comment-368640803

You can use wiki markup directly in the editor to link to a comment. Enter [$ followed by the Comment ID, for example [$12345] where '12345' is the Comment ID.

If you have configured shortcut links on your Confluence site, then you can link to an external site using a shortcut link that looks like this:CONF-17025@jira.

Our Confluence site (where this documentation is housed) is configured to allow shortcut links to our JIRA site, using the shortcut @jira. So the shortcut link CONF-17025@jira produces this link.

To add a shortcut link using the 'Insert Link' dialog:

  1. Choose Link > Advanced and enter or paste the shortcut link into the Link field (shortcut links are case-insensitive)
  2. Modify or enter link text (this is the text that will appear on the page)
  3. Choose Insert

You can also type '[' and choose Insert Web Link > Advanced  to enter a shortcut link.

See Configuring Shortcut Links for more details.

Trackback enables two sites can stay informed each time one site refers to the other using trackback 'pings'.

In Confluence, Trackback can be enabled by a site administrator in the Administration Console. When Trackback is enabled, any time you link to an external webpage that supports Trackback Autodiscovery, Confluence will send a Trackback ping to that page to inform it that it has been linked to.

Confluence pages also support Trackback Autodiscovery, and when Trackback is enabled, can receive trackback pings sent by other sites.

To see who has sent a Trackback ping to a Confluence page:

  1. Go to the page
  2. Choose Tools > Page Information

Any Trackback pings the page has received will be listed under the page's Incoming Links.

Confluence incoming trackback pings only work with referenced pages that are public (anonymously viewable).

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport