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

Renaming destroys relative references ".SubPage.WebHome"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 15.10.11, 16.10.1
    • Refactoring
    • None
    • Unknown

    Description

      Renaming a page containing relative references in a display macro incorrectly converts the relative references to direct references.

      Steps to reproduce:

      1. Create a page:
        Sandbox.Renaming-Bug.Page.WebHome
      2. Create subpages with content:
        Sandbox.Renaming-Bug.Page.FirstSubPage.WebHome
        Sandbox.Renaming-Bug.Page.SecondSubPage.WebHome
      3. Include the subpages in the page using the display macro using relative references:
      {{display reference=".FirstSubPage.WebHome"/}}
      
      {{display reference=".SecondSubPage.WebHome"/}} 
      1. The content of the subpages is displayed accurately in Page.
      2. Rename Page to PageRenamed using Move/Rename.
      3. The content of the subpages is not being displayed in PageRenamed.
      4. Check the source code of PageRenamed:
      {{display reference="Sandbox.Renaming-Bug.Page.FirstSubPage.FirstSubPage.WebHome"/}}
      
      {{display reference="Sandbox.Renaming-Bug.Page.FirstSubPage.SecondSubPage.WebHome"/}}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            CycleSEC Sebastian Klipper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: