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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Anchors and updating a page


I have a few anchors in my page and I link them at the same page a few times.

Unfortunately when I'm editing my page (not stuff concerning the anchors, just anything on the page) the anchor-links will also lead to the anchor in the previous version of the page.

Why is that and what can I do to get the anchors right?


2 answers

0 votes
Dominic Lagger Community Leader Sep 29, 2020

Hi @bid_msg_76 

I have a few questions:

  • Which confluence server version do you use?
  • How do you set the anchors? 

Check this:

  1. What is the url of the page you want to link?
  2. What is the url of the anchor link? 
  3. Do they match? 

Regards, Dominic

0 votes

I have the same issue. Everytime I edit the page, the anchors stop working and instead link to the previous version of the page. I'm on version 7.6.1.

I have a ton of links so its very inconvenient to go through all of them and link them, so luckily I found a workaround.

Use Chrome otherwise the code needs to be modified. Note that this will break any links to other pages, so if your page also contains those, you need to edit this code snippet. Use at your own risk, but bear in mind that you can revert to the previous page version if something goes horribly wrong.

1. Press Edit to open the Editor view.

2. Right-click the page and click Inspect. 

3. In the console enter the following code: 

$$("a.confluence-link").forEach((elm) => { elm.removeAttribute("data-linked-resource-type"); elm.removeAttribute("data-linked-resource-id"); elm.removeAttribute("data-linked-resource-version"); });

4. Click Save.

Suggest an answer

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

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

198 views 0 6
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