From 3202f227fbb6174c652ff77f005ff03a7dfe548e Mon Sep 17 00:00:00 2001 From: Brian DeRocher <2524550+openbrian@users.noreply.github.com> Date: Sat, 28 Feb 2026 18:29:26 -0500 Subject: [PATCH 1/2] Replace /apis with /api to match routes.rb. --- app/controllers/custom_wizard/admin/api.rb | 2 +- .../javascripts/discourse/controllers/admin-wizards-api-show.js | 2 +- assets/javascripts/discourse/models/custom-wizard-api.js | 2 +- lib/custom_wizard/api/authorization.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/custom_wizard/admin/api.rb b/app/controllers/custom_wizard/admin/api.rb index e31234bbc6..1554ca5fcb 100644 --- a/app/controllers/custom_wizard/admin/api.rb +++ b/app/controllers/custom_wizard/admin/api.rb @@ -100,7 +100,7 @@ def redirect CustomWizard::Api::Authorization.set(params[:name], code: params[:code]) CustomWizard::Api::Authorization.get_token(params[:name]) - redirect_to path("/admin/wizards/apis/" + params[:name]) + redirect_to path("/admin/wizards/api/" + params[:name]) end private diff --git a/assets/javascripts/discourse/controllers/admin-wizards-api-show.js b/assets/javascripts/discourse/controllers/admin-wizards-api-show.js index 6def96e2cf..10210a92cf 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-api-show.js +++ b/assets/javascripts/discourse/controllers/admin-wizards-api-show.js @@ -101,7 +101,7 @@ export default Controller.extend({ if (authType === "oauth_2") { this.set("authorizing", true); - ajax(`/admin/wizards/apis/${underscore(name)}/authorize`) + ajax(`/admin/wizards/api/${underscore(name)}/authorize`) .catch(popupAjaxError) .then((result) => { if (result.success) { diff --git a/assets/javascripts/discourse/models/custom-wizard-api.js b/assets/javascripts/discourse/models/custom-wizard-api.js index 4470e02f16..03953591bf 100644 --- a/assets/javascripts/discourse/models/custom-wizard-api.js +++ b/assets/javascripts/discourse/models/custom-wizard-api.js @@ -13,7 +13,7 @@ const CustomWizardApi = EmberObject.extend({ "//" + location.hostname + (location.port ? ":" + location.port : ""); - return baseUrl + `/admin/wizards/apis/${nameParam}/redirect`; + return baseUrl + `/admin/wizards/api/${nameParam}/redirect`; }, }); diff --git a/lib/custom_wizard/api/authorization.rb b/lib/custom_wizard/api/authorization.rb index 89eafb0a60..128ab73e3f 100644 --- a/lib/custom_wizard/api/authorization.rb +++ b/lib/custom_wizard/api/authorization.rb @@ -96,7 +96,7 @@ def self.get_token(name, opts = {}) if type === "oauth_3" body["code"] = authorization.code - body["redirect_uri"] = Discourse.base_url + "/admin/wizards/apis/#{name}/redirect" + body["redirect_uri"] = Discourse.base_url + "/admin/wizards/api/#{name}/redirect" end connection = From 1e7238dfc32ccf58044cbcaa794d432e8ee36c86 Mon Sep 17 00:00:00 2001 From: Brian DeRocher <2524550+openbrian@users.noreply.github.com> Date: Tue, 3 Mar 2026 19:58:35 -0500 Subject: [PATCH 2/2] Bump the version to 2.13.4 --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index b6fbd67e42..09f509b8a4 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.13.3 +# version: 2.13.4 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Marcos Gutierrez # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech