0
Fork 0
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:
Fabien "egg" O'Carroll 2022-02-10 16:56:43 +02:00 committed by Fabien 'egg' O'Carroll
parent 3a0fa8d7d8
commit 46db240bf9

View file

@ -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) => {