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.?

2 Answers 2


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

  • In which area you have done this change. Mar 22, 2018 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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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