This issue has been created
There is 1 update.
 
 
Book Versions / cid:jira-generated-image-avatar-6f44e757-3a51-4a97-8a3d-e7b708cada0d BVERSION-247 Open

Relative anchor links to headings on the same page are transformed to absolute links

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2015e23c-1d7c-4469-9f10-b99033260ef5 Ion Claudiu created this issue on 19/Jan/26 09:00
 
Summary: Relative anchor links to headings on the same page are transformed to absolute links
Issue Type: cid:jira-generated-image-avatar-6f44e757-3a51-4a97-8a3d-e7b708cada0d Bug
Assignee: Unassigned
Created: 19/Jan/26 09:00
Priority: cid:jira-generated-image-static-major-6e3e1385-bde4-4af3-8a0e-349bc5dbd67e Major
Reporter: Ion Claudiu
Description:

During publishing, simple anchors on pages (we tested library pages) are transformed to hard links. As a result, when such pages are re-used in various other pages, the links point back to the library page instead of keeping the user on the same page. It seems the publishing link-transformer should allow simple anchor links to remain as-is so they would work as relative links in any context.

For example, these two links represent two kinds of simple anchor links:
Jump to the croissant Heading anchor>>||anchor="HCroissant"
Jump to the croissant Anchor anchor>>||anchor="croissant"

If they remained that way after publication, it would be fine. But they are changed in the target page to something like:

Jump to the croissant Heading anchor>>whole-reference||anchor="HCroissant"
Jump to the croissant Anchor anchor>>whole-reference||anchor="croissant"

 

here is how it should work:

  • assume a tree with page A being the book root, and pages B and C in the book
  • page B has a link to page C
  • now, the book with the root in A is published to the tree A'
  • pages B and C are also published under A'
  • what happens is that the reference of the link in B is re-written to properly point to the published page C; if we wouldn't do anything specific here, the link in B would keep on pointing to the page C in the A tree, not in the A' tree.
 
 

1 update

 
cid:jira-generated-image-avatar-2015e23c-1d7c-4469-9f10-b99033260ef5 Changes by Ion Claudiu on 19/Jan/26 09:01
 
Assignee: Mathieu Pace