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 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
nagyalex 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 August 6, 2015

It is not working for 5.4.2 version as well.

0 votes
Emily Reitman 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