I've been looking for a while for this, but can't find the answer.
Expected behavior:
- User goes on a product page
- User wants to buy the product, so he needs to login / register (with a modal)
- User doesn't have an account so he registers
- After registration (there is no email confirmation), user is signed in and redirected to the current product page
- User can proceed to checkout, etc...
This behavior is working in the case of a login, with the use of the _target_path
parameter in the form.
However, this parameter does not apply in registration. This is kinda annoying, where did I miss something out ? I am looking into implementing a Listener on the registration success event but it seems really odd to not being as simple as for the login form.