Problems with anchors with the same name in a page #4755
Labels
component:docs
Documentation improvements, including new or updated content
kind/bug
Issues related with bugs in the documentation
This might be an edge case, but when a subtitle with the same name appears multiple times on a single page, the anchor links are not correctly assigned.
In my case, there are 2
Limitations
subtitles in this page , and I recently added a new one.There are all in the same level (2nd level title), so at a first glance nothing seems wrong.
But in such cases, the links are generated as follows:
https://docs.camunda.io/docs/components/modeler/web-modeler/play-your-process/#limitations
https://docs.camunda.io/docs/components/modeler/web-modeler/play-your-process/#limitations-1
The issue arises when I add a new title and subtitle (subtitle named "Limitations" again) above the existing ones. In this case, the existing links will be updated as follows:
#limitations --> #limitations-1
#limitations-1 --> #limitations-2
and my new anchor link will be: #limitations
I solved this problem by defining a custom anchor in this docs page, so if I referred these links somewhere, they won't be altered.
But I think we need to pay attention to this somehow.
The text was updated successfully, but these errors were encountered: