Skip to content

Feature Request : add redirect URL as 2nd parameter for createMagicLogin #43

@john-henry

Description

@john-henry

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions