Hello, friends. I am with the „magic“ of coding plugins…
I want to know if possible how to redirect correctly after a valid custom login. to the URL accoun/login
It worked for me in shopware 5.
but I am recoding the plugin I made for shopware 6 ( code must be different )
I managed to redirect using :
use \Symfony\Component\HttpFoundation\RedirectResponse;
$response = new RedirectResponse('frontend.account.login.page');
$response->send();
but I want to use My ContextToken (I am already logged)
to see the green screen (Logged) in the view. but it appears as If I am not logged…
I make a request to ‚http://localhost/store-api/account/login‘, ( that returns OK. and the context token)
my plugin starts in the ROUTE : localhost/voxelcare-login-control. and then I must go to
localhost/admin/login ( with the green screen of logged) after the login.