Skip to content

Commit 8472aaa

Browse files
committed
improve navroot behavior
1 parent 5052bf6 commit 8472aaa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/cone/app/browser/layout.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ def navroot(self):
363363
if model.properties.is_navroot:
364364
return model
365365
model = model.parent
366+
default_child = root.properties.default_child
367+
if default_child:
368+
child = root.get(default_child)
369+
if child is not None and child.properties.is_navroot:
370+
return child
366371
return root
367372

368373
def navtreeitem(self, title, url, target, path, icon, css=''):

0 commit comments

Comments
 (0)