This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-94f550fd-08fb-4f49-b419-c343e4dedfef XWIKI-23653 Open

Links to selected texts are generated without a corresponding anchor in the document content

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-20838315-5cdf-445a-a918-9c91e4556e38 Raphaël Jakse created this issue on 03/Nov/25 11:28
 
Summary: Links to selected texts are generated without a corresponding anchor in the document content
Issue Type: cid:jira-generated-image-avatar-94f550fd-08fb-4f49-b419-c343e4dedfef Bug
Affects Versions: 17.5.0
Assignee: Unassigned
Attachments: Annotation.WebHome.xar
Components: Annotations
Created: 03/Nov/25 11:28
Priority: cid:jira-generated-image-static-major-25bb3f7c-dcf3-49d5-9586-2306ae30b7f3 Major
Reporter: Raphaël Jakse
Description:

Annotations are displayed in the comment section with a link on the selection text. These links appear to be broken: they have an anchor, but the corresponding anchor doesn't exist in the rendered document content.

Here is a case to reproduce the issue. The page was imported using the confluence-xml input filter stream, importing this package: https://github.com/xwiki-contrib/confluence/tree/master/confluence-xml/src/test/resources/confluencexml/annotations

Note: the state of the comments isn't set. Setting it to SAFE doesn't appear to change anything.

In any case, we shouldn't be generating links with a non-existent anchor.