I am working on Magento 22.214.171.124 site which has been heavily customized for client's needs.
By "heavily customized" I mean not just templates override but also many modules added for "Model" and "controller" rewrites too.
Now I am having issue of displaying messages(from Magento
core/session) when a product is added to wishlist. What I have done here is when a customer adds product(from list page) to wishlist, he is redirected back to product-list page
Now problem is the message
<Product name> is added to your wishlist is not shown on product list page but it shows when customer manually goes to his wishlist page after adding product.
Even if I call message block by echo
echo $this->getMessagesBlock()->getMessages(); messages doesn't show up in list page.