redirect to group landing page on success
This commit is contained in:
parent
16513e29ea
commit
c6dcff5c06
|
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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: ''
|
||||
|
|
Loading…
Reference in New Issue