This issue has been created
There are 5 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-34ff7832-af3d-4806-b310-415125ee2e36 XWIKI-23390 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-20adf05b-19da-42f9-a408-98ca658569b6 Anca Luca created this issue on 19/Jul/25 17:21
 
Summary: Document tree macro does not properly open to the selected node when the showRoot parameter is set to "true"
Issue Type: cid:jira-generated-image-avatar-34ff7832-af3d-4806-b310-415125ee2e36 Bug
Affects Versions: 16.10.9, 17.5.0
Assignee: Unassigned
Components: Tree
Created: 19/Jul/25 17:21
Priority: cid:jira-generated-image-static-major-590e258a-37af-4ad4-ba13-cbd801f702c1 Major
Reporter: Anca Luca
 
 

5 updates

 
cid:jira-generated-image-avatar-20adf05b-19da-42f9-a408-98ca658569b6 Changes by Anca Luca on 19/Jul/25 17:22
 
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:

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

we have the following:

On XWiki 16.4.6 (expected result):

!screenshot-1.png|thumbnail!

On XWiki 16.10.9 and 17.5.0 (actual result):

!screenshot-2.png|thumbnail!

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:

!screenshot-3.png|thumbnail!
Attachment: screenshot-1.png
Attachment: screenshot-2.png
Attachment: screenshot-3.png
Labels: regression