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) {