I have followed the instructions on the Anchors page. I am placing anchors at specific points in the article I am writing. Links at the top should link to the anchors in the article on the same page.
Now when I click a link, the URL is appended with #id-<PageName>-<AnchorName>
Otherwise nothing happens. No page reload reload, no scrolling to the anchor.
I am using Chrome v.55
Thanks for your answer. I did as you said, I am able to find my anchors <PageName>-<AnchorName> within the page source. It cannot be a typo because I noticed it is also doing it with the table of contents macro.
I noticed one of the previous pages that I created some years ago, that definitely had this anchoring/linking working, now does not work.
Maybe it is a bug in Confluence?
The page will only scroll if the anchor is off the bottom of the visible page. That catches some people out, but I'm guessing from your description that you know that.
So, either the link is wrong, or the anchor is wrong.
When you add an anchor link, the format should be Space:Page#Anchor, and the link needs to be added in the Advanced > Link text box.
Is that exactly what you see when you edit the link?
When you edit the page is the anchor macro in the right place, and when you edit the anchor is the name of the anchor the same as the name of the link?
Thanks for your reply!
Yes the anchor to which the link should link is much farther down the page and not in the current view when I click on the link.
Although the link is on the same page as the anchor, I followed your instructions using the full "Space:Page#Anchor" but when I save the changes, then go back again to editing the link, I see that it has automatically removed the Space:Page components, leaving only #Anchor.
Yes to Advances > Link text box.
Yes to both, I have checked many many times
Yup, Confluence removes the parts of the anchor link it doesn't need, but sometimes if the original anchor link wasn't correct then you get a problem, and that problem isn't obvious because part of the link has been removed!
Ok, if the link is right and the anchor is right, the next thing is to try it in another browser. Do you get the same issue in both Firefox and Edge?
Edit: I've just seen your reply to Randy. As anecdata, it's working on my (Cloud) version, so not a bug as such (although it might be a bug for your combination of Confluence and browser versions).
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
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!
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