License dispenser query strings (#5321)

Co-authored-by: Tim Kern <tim@fleetdm.com>
This commit is contained in:
Eric 2022-04-21 16:46:31 -05:00 committed by GitHub
parent 8bb6b5a9c7
commit babccf8a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ module.exports = {
// If the user has a license key, we'll redirect them to the customer dashboard.
let userHasExistingSubscription = await Subscription.findOne({user: this.req.me.id});
if (userHasExistingSubscription) {
throw {redirect: '/customers/dashboard'};
throw {redirect: '/customers/dashboard?login'};
}
// Respond with view.

View file

@ -58,7 +58,7 @@ parasails.registerPage('new-license', {
clickGoToDashboard: async function() {
this.syncing = true;
window.location = '/customers/dashboard';
window.location = '/customers/dashboard?order-complete';
},
submittedQuoteForm: async function(quote) {

View file

@ -46,7 +46,7 @@ parasails.registerPage('login', {
// > (Note that we re-enable the syncing state here. This is on purpose--
// > to make sure the spinner stays there until the page navigation finishes.)
this.syncing = true;
window.location = '/customers/new-license';
window.location = '/customers/new-license?login';
},
}

View file

@ -61,7 +61,7 @@ parasails.registerPage('signup', {
// > (Note that we re-enable the syncing state here. This is on purpose--
// > to make sure the spinner stays there until the page navigation finishes.)
this.syncing = true;
window.location = '/customers/new-license';
window.location = '/customers/new-license?signup';
}