Hi,
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?
Thanks
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.
Hi @bid_msg_76
I have a few questions:
Check this:
Regards, Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.