From eadd64bbbc6ef3333768b6c3ab5467ed8f769803 Mon Sep 17 00:00:00 2001 From: merefield Date: Fri, 7 Jul 2023 11:03:44 +0100 Subject: [PATCH] FIX: temp fix for javascript exception during init --- .../discourse/initializers/custom-wizard-redirect.js.es6 | 4 ++-- plugin.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 b/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 index 5667bdf8..1438f0d6 100644 --- a/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 +++ b/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 @@ -1,5 +1,3 @@ -import ApplicationRoute from "discourse/routes/application"; - export default { name: "custom-wizard-redirect", after: "message-bus", @@ -17,6 +15,8 @@ export default { window.location.href = wizardUrl; }); + const ApplicationRoute = requirejs("discourse/routes/application").default; + ApplicationRoute.reopen({ actions: { willTransition(transition) { diff --git a/plugin.rb b/plugin.rb index 5122cbed..9d67bd1c 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.4.9 +# version: 2.4.10 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech