Uploaded image for project: 'Book Versions'
  1. Book Versions
  2. BVERSION-247

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.28
    • None
    • None
    • None
    • Unknown

    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.

      Attachments

        Activity

          People

            mpace Mathieu Pace
            cion Ion Claudiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: