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

Document tree macro does not properly open to the selected node when the showRoot parameter is set to "true"

    XMLWordPrintable

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      On XWiki 16.10.9 and 17.5.0, when using the documentTree parameter with the openTo parameter set, it doesn't work properly if showRoot parameter is also set to true. Works fine if showRoot is set to false. It also used to work fine with both parameters on XWiki 16.4.6 so this is a regression.

      For example, for this documentTree macro call that is built to work with standard distribution content:

      {{documentTree root="document:xwiki:Help.WebHome" openTo="document:Help.Applications.Movies.WebHome" showRoot="true"/}}
      

      we have the following:

      On XWiki 16.4.6 (expected result):

      On XWiki 16.10.9 and 17.5.0 (actual result):

      Note: if the showRoot macro is removed or set to false, it opens properly on XWiki 16.10.9 and 17.5.0 as well:

      Attachments

        1. screenshot-3.png
          screenshot-3.png
          32 kB
        2. screenshot-2.png
          screenshot-2.png
          15 kB
        3. screenshot-1.png
          screenshot-1.png
          32 kB

        Issue Links

          Activity

            People

              surli Simon Urli
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: