I am trying to add success message in my controller but messages are showing.
In my controller
class, I have extended \Magento\Framework\App\Action\Action
class and using below code to add success message:
$this->messageManager->addSuccess(
__('Thanks for contacting us with your comments and questions. We\'ll respond to you very soon.')
);
$this->_redirect('contact/index');
to redirect and it's perfectly working. But messages are not showing.