Fix ticket cart URLs to use events app's own adjust route
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s

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 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-22 22:52:11 +00:00
parent 1dbf8f479e
commit f1b3093d94
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
{% if entry.ticket_price is not none %}
<div class="shrink-0">
{% set qty = pending_tickets.get(entry.id, 0) %}
{% set ticket_url = cart_url('/ticket-quantity/') %}
{% set ticket_url = url_for('tickets.adjust_quantity') %}
<div class="flex items-center gap-2 text-sm">
<span class="text-green-600 font-medium">&pound;{{ '%.2f'|format(entry.ticket_price) }}</span>

View File

@@ -32,7 +32,7 @@
<span class="text-xs text-green-600 font-medium">&pound;{{ '%.2f'|format(entry.ticket_price) }}/ticket</span>
{% 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 %}
<form