mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Removed search params from custom signup redirects (#12386)
refs #12366 This means that custom redirects will not trigger the built in notifications handled by Portal.
This commit is contained in:
parent
49197a6597
commit
38d19c999d
1 changed files with 6 additions and 3 deletions
|
@ -154,9 +154,12 @@ const createSessionFromMagicLink = async function (req, res, next) {
|
|||
}
|
||||
}
|
||||
|
||||
// Do a standard 302 redirect, with success=true
|
||||
if (redirectPath === '/') {
|
||||
searchParams.set('success', true);
|
||||
res.redirect(`${urlUtils.getSubdir()}${redirectPath}?${searchParams.toString()}`);
|
||||
redirectPath = redirectPath + '?' + searchParams.toString();
|
||||
}
|
||||
|
||||
res.redirect(`${urlUtils.getSubdir()}${redirectPath}`);
|
||||
} catch (err) {
|
||||
logging.warn(err.message);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue