Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/custom_wizard/admin/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/discourse/models/custom-wizard-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
},
});

Expand Down
2 changes: 1 addition & 1 deletion lib/custom_wizard/api/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down