Page Tree macro with @self root shows "The selected root page could not be found" after the page is moved to another space

XMLWordPrintable

    • Minor

      Issue Summary

      When a page containing a Page Tree macro with the Root content set to @self is moved to another space, the macro's root parameter keeps the original space key. The macro then fails to render in the new space and shows "The selected root page could not be found." In the macro edit panel, the Root content field appears empty.

      Steps to Reproduce

      1. In space A, create a page and insert a Page Tree macro with Root content set to @self.
      2. Create two child pages under this page. Confirm that the tree renders correctly.
      3. Move the parent page to space B (More actions > Move).
      4. View the moved page in space B.

      Expected Results

      The Page Tree macro renders the child pages of the current page in the new space.

      Actual Results

      The macro shows "The selected root page could not be found." The storage format of the root parameter changes from
      <ri:page ri:content-title="@self" />
      to
      <ri:page ri:content-title="@self" ri:space-key="<space A key>" />
      The error occurs even though space A still exists.

       

      ...
      

      Workaround

      Edit the page, open the Page Tree macro settings, select @self again for Root content, and update the page. This removes the previous space key from the root parameter.

              Assignee:
              Nick Bourlier
              Reporter:
              Kyungmin Kim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: