diff --git a/app.py b/app.py index 1f87e20..c23ff3d 100644 --- a/app.py +++ b/app.py @@ -14,6 +14,7 @@ from bp import register_account_bp, register_auth_bp, register_fragments async def account_context() -> dict: """Account app context processor.""" from shared.infrastructure.context import base_context + from shared.services.navigation import get_navigation_tree from shared.infrastructure.cart_identity import current_cart_identity from shared.infrastructure.fragments import fetch_fragment @@ -23,6 +24,8 @@ async def account_context() -> dict: "blog", "nav-tree", params={"app_name": "account", "path": request.path}, ) + # Fallback for _nav.html when nav-tree fragment fetch fails + ctx["menu_items"] = await get_navigation_tree(g.s) # Cart data (consistent with all other apps) ident = current_cart_identity() diff --git a/shared b/shared index 7e650a0..ab674ad 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit 7e650a0ee3a61d56525cc9e298ed0c4194e780a4 +Subproject commit ab674ada31f09edb1a4333e520d482e13e0c90da