link to anchor doesn't work

I added an anchor  #thisanchor near the bottom of the page (with at least a page  worth of text following it.)

I added the link near the top of the page.   The unqualified link did NOT link to the same page.  It added a bogus prefix URL when saved.  So I added a fully qualified link for that same page where the link was inserted so it would link within the page.

when I hover over the link it says the right thing - "Go to link #thisanchor on this page".

But it doesn't do anything.  The page does not move to the bottom anchor.

There is no TOC defined on this page.

The anchor only shows up in 'edit' mode as per design.

This is such a basic use of anchors and it doesn't work.   Help!

Confluence 5.10.8

3 comments

No idea, if your version is different from mine.
I use version 4.3.7 (server) and adding anchors is pretty straightforward.

To enter the anchor:
* Insert > Other macros > Anchor
* Type "My Anchor" at "Anchor Name"

To link to the anchor:
* Highlight link text
* Insert Link > Adcanced
* Type "#My Anchor" at "Link"

As stated, I'm running 5.10.8 which is different from yours.

Yes, the insertion and link to anchors is quite straightforward.   Only thing is that it doesn't work for me.  I'm used anchors in many CMS and/or twiki systems and it always worked for me in the past, just not in confluence. 

I checked the latest version 6.3 => https://confluence.atlassian.com/doc/anchors-139442.html and the cloud version => https://confluence.atlassian.com/confcloud/anchors-724764900.html, the description is the same as mine.

Have to tried to follow the docu for your version?

This isn't my first rodeo. That's the first thing I did was read the documentation. It's a bug. My company admin can request support from Atlassian support.  The issue is still open.

@Derek Dokoto Did you ever get a resolution to this.  We are on Confluence 6.2.4 and have the same problem. following the instructions for placing links to anchors on the same page, the anchor gets generated into the link with a prefix. The prefix is the pagename with spaces removed. In other words, On a page named "This Page", with an anchor name "an1", here's what gets generated for an anchor URL:

https://myConfluence/display/mySpace/This+Page#ThisPagean1

 

Of course this doesn't work, because the anchor is really named an1, not ThisPagean1.

Can you paste the page source here? At least where the link was inserted and then the code around the anchor. Sometimes spurious tags can get pasted into a page.

 

You are clicking Insert Link and then the clicking the Advanced tab to insert the link?

@Doug Swartz

I don't know about "the same problem" (there might be something, who knows?) but what you describe, the fact that a prefix is added to the link, is correct behaviour.

It is correct because the same prefix is automatically added to the anchor. You can see it if you have a look at the source code.

I am no longer working at the company that used Confluence.   The tool had a smattering of "experts" around my company.   I consulted with all of them at the time and it was a limitation/defect of Confluence and was never resolved before leaving the company.    In principle, Confluence is a great tool.  Unfortunately with the number of significant glitches and oversights and missing functionality, adoption rate was limited and most pages are simple text files preventing a great deal of promise suggested by the tool.  

Sorry I can't be helpful.   The tool is broken.

Comment

Log in or Join to comment
Community showcase
Bridget Sauer
Published Jan 29, 2018 in Confluence

Showcase: How LinkedIn does Content Lifecycle Management (12 Steps)

LinkedIn, the world's largest business network has an exceptionally large Confluence instance. In their case, large means millions of pages and thousands of spaces. In this Showcase, we're focusing i...

521 views 0 8
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot