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

Include macro reference is resolved based on current document instead of source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 7.2
    • Rendering
    • Unknown
    • N/A
    • N/A

    Description

      To reproduce:

      • Put some simple content in document Space1.B.
      • In document Space1.A:
        {{include reference="B"/}}
        
      • In document Space2.A:
        {{include reference="Space1.A"/}}
        

      When viewing Space1.A you get content located in Space1.B but when viewing document Space2.A you get nothing (document Space2.B is included instead of Space1.B).

      Workaround is to use full name in include macro.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: