Restore menu_items fallback for nav, update shared submodule
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 59s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 59s
Keep get_navigation_tree() as fallback when nav-tree fragment fetch fails. Update shared submodule with fixed app slug URLs in nav. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
3
app.py
3
app.py
@@ -22,6 +22,7 @@ async def market_context() -> dict:
|
|||||||
- cart: direct ORM query (templates need .product relationship)
|
- cart: direct ORM query (templates need .product relationship)
|
||||||
"""
|
"""
|
||||||
from shared.infrastructure.context import base_context
|
from shared.infrastructure.context import base_context
|
||||||
|
from shared.services.navigation import get_navigation_tree
|
||||||
from shared.services.registry import services
|
from shared.services.registry import services
|
||||||
from shared.infrastructure.cart_identity import current_cart_identity
|
from shared.infrastructure.cart_identity import current_cart_identity
|
||||||
from shared.infrastructure.fragments import fetch_fragment
|
from shared.infrastructure.fragments import fetch_fragment
|
||||||
@@ -34,6 +35,8 @@ async def market_context() -> dict:
|
|||||||
"blog", "nav-tree",
|
"blog", "nav-tree",
|
||||||
params={"app_name": "market", "path": request.path},
|
params={"app_name": "market", "path": request.path},
|
||||||
)
|
)
|
||||||
|
# Fallback for _nav.html when nav-tree fragment fetch fails
|
||||||
|
ctx["menu_items"] = await get_navigation_tree(g.s)
|
||||||
|
|
||||||
ident = current_cart_identity()
|
ident = current_cart_identity()
|
||||||
|
|
||||||
|
|||||||
2
shared
2
shared
Submodule shared updated: 7e650a0ee3...ab674ada31
Reference in New Issue
Block a user