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

Anchor links are not rendered correctly

    XMLWordPrintable

Details

    • Unit
    • Unknown

    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

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

            Dates

              Created:
              Updated:
              Resolved: