Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Anchor links do not work

Using confluence is so simple and easy. But, I have been having a nightmarish time trying to get Anchor work for me. I am using "Confluence 1000.0.0-66d80941701".

On a page, say, "https://<>.com/myspace/main page/sub page/my page1", I created an anchor with the name bottom. (please note the spaces in my URL).

On another page, say, "https://<>.com/myspace/main page/my page2", I created a link using Advanced tab selection, and pointed to anchor my page1#bottom.

I Published both pages. Clicking on the link NEVER takes me to the anchor location. Always takes me to top of the page in "https://<>.com/myspace/main page/sub page/my page1"

I followed the example ... but it doesnt work!

Need this to be resolved ASAP for me to create a bi-directional traceability in the spec I am writing. Kindly help!

8 answers

1 accepted

1 vote
Answer accepted

Hi Madhav,

how have you configured the link to your anchor on the other page? From what you wrote I assume both pages are in the same space. By entering the page name as it is (with spaces) and adding the anchor name you can make it work. I just tested it again because I like to use this feature as well. So just add on the advanced tab: "page name with spaces#anchorname" without quotation marks and please let me know if it works for you :) If not, please add a screenshot of the link configuration, the anchor name, and page title so we can build the link together.



Yes, I am working in the same confluence space.

I just now created sample / dummy pages with page names containing spaces, and having sub pages within. I created an anchor inside one of the sub pages and a link in one of the top pages.  I am able to navigate and it works. (I did not include images in this experiment!)

Unfortunately, when I do the same on my main confluence spec (which includes images), I am always getting redirected to top of the page. 

One thing I found out thru this exercise is I am using plugin for drawing images in confluence. And I just now found that plugin is playing spoilsport. When my anchor on the page is way down below, and I have a fairly large image on top of the page, the image load re-positions the view to the top of the page! As a result, Anchor gets overridden!

So, I attribute the functional misbehaviour of Anchor in Confluence to the presence of a image in the page.

Without image, the anchor is working like a charm!

I will have to accept your answer. Create a new ticket with plugin issue.

Thanks for your time, Max! You are indeed the community champion!

Like Max Foerster - K15t likes this

Don't make me blush! You're welcome. But your findings are interesting. I will keep an eye out and test some other embedded contents and how they interact with anchors. And hopefully, there will be a fix soon for your specific issue!

We have noticed similar issues: clicking a hyperlink in a figure jumps to the wrong place on the same page. Not totally off, just too far down. Sometimes it works better, sometime worse.

Like miguel_cucaita2 likes this

I'm having a similar problem

Like Burlakov Eduard likes this

Me too, image on page, anchor doesn't work

Hi everyone- I was able to solve the issue today

Create anchor at the location you want it to direct to:

Add Anchor Marco 

Anchor Name #testname


then insert link using any page in your sapce


Link: Page name##testname

Link Text: Test Name


the double hashtag did it for me.


hope this helps

We are now on Server v7.2.1

I placed an anchor on a page titled "page anchor link 1" and called it "Target"


Then on another page I placed an "Advanced Link" with text "jump to target" and the following link  

page anchor link 1##Target

it went to the page, but not the anchor point


I changed the Advanced link to just one #

page anchor link 1#Target

That worked!!


It would seem that there may be an additional problem that the link is "page title" dependant i.e. change the page location or title and the link would be broken.

So I tested that and changed the target page title 

Good news .. the Advanced Link automatically updated


Much too complicated and cumbersome. Effectively broken.

Much too complicated and cumbersome, IMHO. 

All, I was having this problem until I realized can't select the page you're linking to, then go and add JUST the anchor in the Advanced field.  You have to go to Advanced and add BOTH the page name, the "#" character, and the anchor name (keeping in mind it is case and space sensitive).  That made it work for me.  Frankly I find that confusing and not documented accurately or clearly here , but hey, go with what works. :) We are on Server 7.4.1 FYI, but I suspect this is true going back many versions. 

This worked for me ... finally!  (at least within Confluence) ... I guess I have always missed the 'Advanced' recommendation.  I have not been successful with anchor links from external pages , but will try again. 

I still see a big problem when trying to link to anchors from outside confluence, eg from a web page, a pdf file, email or whatever else.

In these cases I normally use the absolute link to the page Id (from "Share link"), because page titles might change. If I try to add #anchor name to these links, it just goes to the page top. :-(

Confluence Cloud claims some sort of fix 

Pending response on Confluence Server

I have the same problem. I don't think Anchors work.

The URL I'm trying to make work is:

I tried defining my anchor as both #myanchor and myanchor (in case the octothorp is required in the coding, unlike using the traditional <a .... > tag in HTML.  In both cases, when I use my anchor in the URL, it goes to the top of the page, not the anchor.


The HTML snippet in my page source code is:

<div class="content-wrapper">
<span style="color: rgb(0,51,102);"> <span style="color: rgb(0,51,102);"> <ac:structured-macro ac:macro-id="30a27554-999c-45f7-a2fc-ed47f53b34ab" ac:name="anchor" ac:schema-version="1">
<ac:parameter ac:name="">#myanchor</ac:parameter>
</ac:structured-macro>Text for myanchor</span> </span>
<span style="color: rgb(0,51,102);"> <span style="color: rgb(0,51,102);">[ OCS ]<br/> </span> </span>

Hi am having similar problems ... :(

I want to be able to email a link to a specific anchor on a specific page

As far as I can tell I have used the right formatting as follows

Anchor name is    UNTICK

Page name is      1 Quick Start Guide

Space Key is        CORES

When I email that link to myself, when I click the link in the email it takes me to the correct page but not to the Anchor point, just the top of the page.

I am currently using Sever 5.8.16 but we will soon be upgrading to 6.15

Hi Rodney,

that doesn't look right for me. Could you try:

Best, Max

Thanks Max

tried that ... that also open the right page but doesn't skip down to the Anchor point

I have spotted some other references that indicate that linking to an anchor from outside the Confluence instance has a bug and doesn't work.

Any updates on that? I have the same issue

The same for me...

I guess it's still the same limited functionality.

Anchors work only if you refer to them from inside Confluence (and not from an external web page) and only if you set the link as advanced link and only if you set the link using the page title, followed by # and by the anchor name.


That means you'll loose the link, in case you modify the page title.

For us it's a big limitation :-(, but that's how it is.

Ciao, Andrea

Like Rodney Hughes likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

246 views 2 5
Read article

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