fix: Update event flow to use new event-scoped order routes
- Update events/show form to use event_order_new_path instead of order_new_path - Fix JavaScript redirect in ticket_selection_controller.js to use event-scoped URL - Ensure proper event context is maintained throughout the order flow - Resolve routing issues that caused "Commande non trouvée" errors 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -117,8 +117,8 @@ export default class extends Controller {
|
||||
// Store cart data in session
|
||||
await this.storeCartInSession(cartData);
|
||||
|
||||
// Redirect to orders/new page
|
||||
const OrderNewUrl = `/orders/new`;
|
||||
// Redirect to event-scoped orders/new page
|
||||
const OrderNewUrl = `/events/${this.eventSlugValue}.${this.eventIdValue}/orders/new`;
|
||||
window.location.href = OrderNewUrl;
|
||||
} catch (error) {
|
||||
console.error("Error storing cart:", error);
|
||||
|
||||
Reference in New Issue
Block a user