wip: Forging new SEO friendly routes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user