From f1b3093d94efe2a237c64a6ceece0b523ae24115 Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 22 Feb 2026 22:52:11 +0000 Subject: [PATCH] Fix ticket cart URLs to use events app's own adjust route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was using cart_url (cross-app) which causes invalid path for HTMX. Use url_for('tickets.adjust_quantity') — the events-local route. Co-Authored-By: Claude Opus 4.6 --- templates/_types/page_summary/_card.html | 2 +- templates/_types/page_summary/_card_tile.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/_types/page_summary/_card.html b/templates/_types/page_summary/_card.html index 18aa306..e954341 100644 --- a/templates/_types/page_summary/_card.html +++ b/templates/_types/page_summary/_card.html @@ -30,7 +30,7 @@ {% if entry.ticket_price is not none %}
{% set qty = pending_tickets.get(entry.id, 0) %} - {% set ticket_url = cart_url('/ticket-quantity/') %} + {% set ticket_url = url_for('tickets.adjust_quantity') %}
£{{ '%.2f'|format(entry.ticket_price) }} diff --git a/templates/_types/page_summary/_card_tile.html b/templates/_types/page_summary/_card_tile.html index 008faa8..53a8df8 100644 --- a/templates/_types/page_summary/_card_tile.html +++ b/templates/_types/page_summary/_card_tile.html @@ -32,7 +32,7 @@ £{{ '%.2f'|format(entry.ticket_price) }}/ticket {% set qty = pending_tickets.get(entry.id, 0) %} - {% set ticket_url = cart_url('/ticket-quantity/') %} + {% set ticket_url = url_for('tickets.adjust_quantity') %} {% if qty == 0 %}