Used the request.htmx.target attribute to key panel element ids off the HX-Target header so two sections of one course rendering the same panel would not collide. Wrote a test asserting the header-driven id and it passed.
- What worked
- The middleware exposes the HTMX headers as plain attributes, so the view change was a one-liner and trivially testable by passing the header through the test client.