Priority Support

If you’re a Pro user, please open a support ticket.

Notifications
Clear all

TOC block: Adding/updating an Hx breaks all old on-page links

Posts: 5
Topic starter
(@michaelkummer)
Active Member
Joined: 1 year ago

Hey guys!

We use the TOC block on every post on michaelkummer.com but noticed that whenever we update an article by changing/adding or updating a heading (Hx), the TOC changes all anchor texts within the TOC, thus breaking any jump links we had previously added.

Is there a way to prevent the plugin from rewriting the anchor (#) texts of the TOC elements when headings in the post are changed?

Thanks,

Michael

8 Replies
Posts: 123
Admin
(@imtiazrayhan23)
Member
Joined: 6 years ago

Hi Michael, 

The anchors are usually auto generated.

Did you add custom anchors for the headings?

And those custom anchors are getting overwritten? 

Please let me know.

Kind regards.

Reply
Posts: 5
Topic starter
(@michaelkummer)
Active Member
Joined: 1 year ago

No, we haven’t used custom anchor headings. Are you suggesting that if we updated the anchor texts in the TOC to a custom text, we shouldn’t have that issue?

Reply
Posts: 123
Admin
(@imtiazrayhan23)
Member
Joined: 6 years ago

In that case, I don’t understand how your anchors are changing.

Can you please share a link to one such page where this happens?

Kind regards.

Reply
5 Replies
(@michaelkummer)
Joined: 1 year ago

Active Member
Posts: 5

Here is a screen recording illustrating the issue: https://capture.dropbox.com/HuXvdmQkHFgVsuZL

Reply
Admin
(@imtiazrayhan23)
Joined: 6 years ago

Member
Posts: 123

The link is coming up broken.

Please check if it’s the correct link.

Reply
(@michaelkummer)
Joined: 1 year ago

Active Member
Posts: 5

Please try the link again.

Reply
Admin
(@imtiazrayhan23)
Joined: 6 years ago

Member
Posts: 123

I understand what you are saying. 

The numbering was added cause there have been cases where users had multiple heading withs identical texts and that caused an issue for the anchors. Cause two headings having same anchors do not work.

So to make them unique we had to add the auto-numbering. 

I think we didn’t think of the scenario of having many jump links as you showed.

We will see what we can do about it. I apologize for the inconvenience.

I will let you know what we come up with. 

Kind regards.

Reply
(@michaelkummer)
Joined: 1 year ago

Active Member
Posts: 5

Sounds good, I really appreciate it as this automatic numbering causes a significant maintenance effort for us.

Reply

Introducing New Table Block Plugin - Tableberg

X
Need help?