I have a site where I use the Magic Login specifically on checkout.
I want the redirect URL to bring them back to the checkout page, though, after they click on their email.
I want to keep my post login redirect pointing to my users' dashboard
I've tried adding magicLoginRedirectUrl as a POST, but it doesn't seem to want to work and doesn't populate the database with the url
It would be nice if I could do the following.
// Set the redirect URL to checkout
$redirectUrl = UrlHelper::siteUrl('checkout');
// Pass the redirect URL as the second parameter directly
$magicLoginUrl = $magicLogin->magicLoginAuthService->createMagicLogin($email, $redirectUrl);
or even include a hidden field for magicLoginRedirectUrl , but that doesn't seem to work either
Codebase reference
getValidatedBodyParam('magicLoginRedirectUrl') ?? $generalConfig->postLoginRedirect;