From 852849cec7f279c8787e4b9044f30dee04e6b20e Mon Sep 17 00:00:00 2001 From: merefield Date: Fri, 7 Jul 2023 11:03:44 +0100 Subject: [PATCH] FIX: javascript exception during initialisation --- .../discourse/initializers/custom-wizard-redirect.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 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..6d26d5b3 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) {