From 91f05d41caa653323895c7faada34ae74cf0e396 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 18 Feb 2026 19:06:40 +0000 Subject: [PATCH] Add oob context processor to orders blueprint for full-page rendering The orders/index.html template extends auth/index.html which needs the oob dict for template inheritance. Without it, direct navigation to /orders/ fails with "'oob' is undefined". Co-Authored-By: Claude Opus 4.6 --- bp/orders/routes.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bp/orders/routes.py b/bp/orders/routes.py index fad7bcd..de8cc35 100644 --- a/bp/orders/routes.py +++ b/bp/orders/routes.py @@ -25,6 +25,18 @@ def register(url_prefix: str) -> Blueprint: ) ORDERS_PER_PAGE = 10 # keep in sync with browse page size / your preference + oob = { + "extends": "_types/root/_index.html", + "child_id": "auth-header-child", + "header": "_types/auth/header/_header.html", + "nav": "_types/auth/_nav.html", + "main": "_types/auth/_main_panel.html", + } + + @bp.context_processor + def inject_oob(): + return {"oob": oob} + @bp.before_request def route(): # this is the crucial bit for the |qs filter