One of my project when i'm clicking on the add to cart button it will display the success message but with links as plain html as follow-

You added Advance/Breaker Housing Screw & washer Pk/6 to your shopping cart.<a href="#">View Cart</a><a href="#">Continue Shopping</a>

How can I render these as clickable links.?


I have done it myself. just change the addSuccessMessage() to addSuccess() in my override class.

  • In which area you have done this change. – Abdul Ghaffar Mar 22 '18 at 6:18

clickable Links work in Magento 2.3.3 out of the box which Magento Version you use? Then I try to provide Core Patch for it.

enter image description here

best regards,


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.