diff --git a/app/javascript/controllers/ticket_selection_controller.js b/app/javascript/controllers/ticket_selection_controller.js index b0b83c0..8e9da7e 100644 --- a/app/javascript/controllers/ticket_selection_controller.js +++ b/app/javascript/controllers/ticket_selection_controller.js @@ -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); diff --git a/app/views/events/show.html.erb b/app/views/events/show.html.erb index 6f3e95d..a1d83ac 100755 --- a/app/views/events/show.html.erb +++ b/app/views/events/show.html.erb @@ -1,23 +1,11 @@ -