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. Commented Mar 22, 2018 at 6:18
  • Thanks. This solution indeed works.
    – Anees
    Commented Jun 6 at 13:32

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 you have read our privacy policy.

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