wip: Forging new SEO friendly routes

This commit is contained in:
kbe
2025-09-06 03:23:05 +02:00
parent d9d43f45e5
commit 2f799936c5
5 changed files with 12 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ export default class extends Controller {
// Initialize the controller and update the cart summary
connect() {
console.log("TicketSelectionController connected");
console.log("Target URL: ", this.target);
console.log("Target URL: ", this.targetUrlValue);
this.updateCartSummary();
this.bindFormSubmission();
@@ -124,7 +124,7 @@ export default class extends Controller {
// Redirect to event-scoped orders/new page
// const orderNewUrl = `/orders/new/events/${this.eventSlugValue}.${this.eventIdValue}`;
const orderNewUrl = `/orders/new/events/${this.eventSlugValue}.${this.eventIdValue}`;
const orderNewUrl = this.targetUrlValue;
window.location.href = orderNewUrl;
} catch (error) {
console.error("Error storing cart:", error);