From 1aa3659bb82282c22bfdd19850166b62ba4538ac Mon Sep 17 00:00:00 2001 From: giles Date: Thu, 19 Feb 2026 15:17:12 +0000 Subject: [PATCH] Uncomment current_local_href in category_context for subcategory highlighting The category selector compares current_local_href against sub.local_href to determine the active subcategory. This was commented out, so no subcategory was ever highlighted. Co-Authored-By: Claude Opus 4.6 --- bp/browse/services/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bp/browse/services/nav.py b/bp/browse/services/nav.py index bdef674..761260a 100644 --- a/bp/browse/services/nav.py +++ b/bp/browse/services/nav.py @@ -142,7 +142,7 @@ def category_context(top_slug: Optional[str], sub_slug: Optional[str], nav: Dict # list of subcategories, each with its own count "subs_local": _order_subs_selected_first(subs, sub_slug), - #"current_local_href": current_local_href, + "current_local_href": current_local_href, } def _apply_category_blacklist(nav: Dict[str, Dict]) -> Dict[str, Dict]: