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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.