Show Messages from Message Manger after Redirect
0
I am currently using the message manager to display a series of messages from my controller. $this->_messageManager->addSuccessMessage(__("All requested products have been added to the cart.")); When the controller sends back the HTTP response i am forcing a redirect to the cart page. window.location.href = "/checkout/cart"; The issue with this is that the messages appear on the current page the HTTP request was sent from and then the redirect occurs, so the messages are on screen for half a second then the page changes. What i want ideally is for the messages to be displayed on the cart page. I have a feeling this is occuring because i am setting the messages in php and then forcing the redirect in the Javascript, after the response has been received. Looking at some Magen...