Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

confluence Anchors not working after upgraade from 4.2 to 5.3

Peter T
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2014

After upgrade the pages with existing anchors does not work anymore. The Anchor macro is still there but a # was added to the name of the anchor and thus all the links to this anchor does not work.

We are talking about thousands of anchor. Any resolution but doing some DB updates?

6 answers

1 accepted

0 votes
Answer accepted
Giuliano C_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 6, 2014

Heya Peter,

By taking a look at the behaviour, it looks like one of our known bugs:

After migration from 3.5.13 to 4.2.x, 4.3.x and 5.5.1 In page anchor displays with #anchorname instead of just anchorname

Through this one, we can see that we have a workaround to remove the hash from the link (as you have asked) and basically, it would be:

You can inject SQL query to remove the hash from the link. For example this is the SQL query for MySQL.

UPDATE BODYCONTENT SET BODY = REPLACE(BODY, 'link-body>#', 'link-body>') WHERE BODY LIKE '%ac:anchor%link-body>#%';

Hope it helps ya,

Giu

1 vote
Piotr Mazij
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 16, 2015

It does not work on Cloud as well.

0 votes
Reid Manchester April 4, 2016

please check your anchor to ensure that there are no spaces or underscores. These screw up the macro.

0 votes
Alexander Nagy
Contributor
December 9, 2015

Not working in cloud for me.

Also there is no way to link anchors while using numerical format:

Example: ../wiki/pages/viewpage.action?pageId=19726602

Adding hashtag doens't work.

 

0 votes
pritam83
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2015

It is not working for 5.4.2 version as well.

0 votes
Emily Reitman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 1, 2015

We have Confluence 5.7 and the anchor macro is not working for us either. Is this a known bug?

Thank you!

 

Emily

Social Venture Partners
www.socialventurepartners.org 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events