mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
🐛 Fixed welcome pages for paid signups
no-issue The way we choose which email to send is too tightly coupled with the magic link generation, which meant that when we added the new paid signup email, the magic link looked like <url>?action=signup-paid rather than <url>?action=signup - our welcome page logic was working off of only using welcome pages for action=signup and so this broke.
This commit is contained in:
parent
3a0fa8d7d8
commit
46db240bf9
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ const createSessionFromMagicLink = async function (req, res, next) {
|
|||
|
||||
const action = req.query.action;
|
||||
|
||||
if (action === 'signup') {
|
||||
if (action === 'signup' || action === 'signup-paid') {
|
||||
let customRedirect = '';
|
||||
const mostRecentActiveSubscription = subscriptions
|
||||
.sort((a, b) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue