From 7fa530a479e8c42a8ff37ea2622560de7f9790a3 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 26 Oct 2025 12:10:29 +0100 Subject: [PATCH] Fixed navigation for old (unlinked) project-versions --- dist/templates/layout.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)} -- 2.39.5