Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3736

Anchor links are not rendered correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9 M1, 1.8.2
    • Fix Version/s: 1.8.3, 1.9 M2
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Consider the following rendering test case (passing):

      .#-----------------------------------------------------
      .input|xwiki/2.0
      .# Test empty document with only 1 new line
      .#-----------------------------------------------------
      [[label>>#name]]
      .#-----------------------------------------------------
      .expect|xhtml/1.0
      .#-----------------------------------------------------
      <p><!--startwikilink:#name--><span class="wikilink"><a href="/xwiki/bin/view/currentdoc#name">label</a></span><!--stopwikilink--></p>
      

      As you can see the link has an absolute form rather than just using #name. This makes it very difficult to use xwiki rendering mechanism outside the context of a wiki page.

        Attachments

          Activity

            People

            Assignee:
            asiri Asiri Rathnayake
            Reporter:
            asiri Asiri Rathnayake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: