Skip to content
Snippets Groups Projects
Commit 84cea5f0 authored by Marius Dumitru Florea's avatar Marius Dumitru Florea
Browse files

XWIKI-12927: The first breadcrumb element after the ellipsis has a different navigation tree

parent 14adfc06
No related branches found
No related tags found
No related merge requests found
......@@ -171,8 +171,10 @@
#if ($index > 0 && $openTo.type != 'WIKI')
#set ($root = $pathData.get($mathtool.sub($index, 1)).reference)
#if ($root.type == 'ellipsis')
#set ($root = $openTo.parent)
#elseif ($root.type == 'SPACE' && !$services.parentchild.isParentChildMechanismEnabled())
## $openTo may have been converted to a document reference above so we take the parent from its initial value.
#set ($root = $pathData.get($openToIndex).reference.parent)
#end
#if ($root.type == 'SPACE' && !$services.parentchild.isParentChildMechanismEnabled())
## The tree shows nested documents.
#set ($root = $services.model.resolveDocument('', 'default', $root))
#end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment