From: Kai Moritz Date: Sun, 26 Oct 2025 11:10:29 +0000 (+0100) Subject: Fixed navigation for old (unlinked) project-versions X-Git-Tag: frontend--debug-menu~1 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=7fa530a479e8c42a8ff37ea2622560de7f9790a3;p=website Fixed navigation for old (unlinked) project-versions --- diff --git a/dist/templates/layout.html b/dist/templates/layout.html index 838e923..3a7a796 100644 --- a/dist/templates/layout.html +++ b/dist/templates/layout.html @@ -158,7 +158,9 @@ 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)}