0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

FIX: Discourse.BaseUrl no longer works

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-11-21 11:22:36 +05:30
Ursprung 80d470b25d
Commit ac944dbb3e

Datei anzeigen

@ -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;