redirect to group landing page on success

This commit is contained in:
Rimian Perkins 2019-10-14 13:54:46 +11:00
parent 16513e29ea
commit c6dcff5c06
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import DiscourseURL from "discourse/lib/url";
import { ajax } from "discourse/lib/ajax";
export default Ember.Controller.extend({
@ -39,7 +40,7 @@ export default Ember.Controller.extend({
return ajax("/patrons/subscriptions", { method: "post", data: subscriptionData }).then(
subscription => {
console.log(3, subscription);
return DiscourseURL.redirectTo(Discourse.SiteSettings.discourse_patrons_subscription_group_landing_page);
}
);
}

View File

@ -10,6 +10,9 @@ plugins:
discourse_patrons_subscription_group:
default: ''
client: true
discourse_patrons_subscription_group_landing_page:
default: ''
client: true
discourse_patrons_payment_page:
client: true
default: ''