th:each="entry : ${submenu}"
th:with="
child=${pos == len},
- selected=${!child and crumbs.get(pos) == entry},
+ hidden=${!child && _canonical.get(crumbs.get(pos)) == entry},
+ entry=${hidden?crumbs.get(pos):entry},
+ selected=${!child and (crumbs.get(pos) == entry or hidden)},
leaf=${pos >= (len - 1) and not selected},
sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)},
childs=${entry == parent ? null : _childs.get(entry)}