diff --git a/assets/javascripts/discourse/models/custom-wizard-manager.js.es6 b/assets/javascripts/discourse/models/custom-wizard-manager.js.es6 index ea7cfd92..f054d0f8 100644 --- a/assets/javascripts/discourse/models/custom-wizard-manager.js.es6 +++ b/assets/javascripts/discourse/models/custom-wizard-manager.js.es6 @@ -1,6 +1,7 @@ import { ajax } from "discourse/lib/ajax"; import { popupAjaxError } from "discourse/lib/ajax-error"; import EmberObject from "@ember/object"; +import getURL from "discourse-common/lib/get-url"; const CustomWizardManager = EmberObject.extend(); @@ -17,7 +18,7 @@ CustomWizardManager.reopenClass({ }, export(wizardIds) { - let url = `${Discourse.BaseUrl}/${basePath}/export?`; + let url = `${getURL()}/${basePath}/export?`; wizardIds.forEach((wizardId, index) => { let step = "wizard_ids[]=" + wizardId;