Skip to content

login-links.js config for login page handler is wrong type #31

@bmcminn

Description

@bmcminn

The [data-mz-action="loginpage-submit"] binding in product.js is initialized as new SignupPopover() instead of new LoginPopover(), which causes it to go down a wierd code path that doesn't trigger a proper redirect to the myaccount view.

https://github.com/Mozu/core-theme/blob/master/scripts/modules/login-links.js#L316-L317

The second part to this is changing the handleLoginComplete method to check for the redirectTemplate so that we can redirect the user as needed.

My changes to fix this can be seen in this commit on my personal theme: bmcminn/mozu-demo-theme@16419b4?w=0

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