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

Relative child page references are not resolved correctly in wiki syntax

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      • Create page Sandbox.ABC.WebHome
      • Create page Sandbox.ABC.DEF.WebHome
      • Add the following content to Sandbox.ABC.Webhome:
      [[test1>>page:./DEF]]
      
      {{velocity}}
      [[test2>>page:$services.model.resolvePage('./DEF')]]
      {{/velocity}}
      
      [[test3>>page:../../Sandbox]]
      
      {{velocity}}
      [[test4>>page:$services.model.resolvePage('../../Sandbox')]]
      {{/velocity}}
      

      Actual result

      • The link on "test1" gets resolved into a reference to "Main.DEF.WebHome"
      • The other links are resolved as expected

      Expected result

      • The link on "test1" gets resolved into a reference to "Sandbox.ABC.DEF.WebHome"

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: