How can I prevent automatic navigation to the cart page after adding items?

Hi All,

I am hoping someone can help me, I have an external web app embedded within my store which works fine, as part of this following a few steps a list of products and quantities is generated and with them an add to cart button. Now when clicking on this it does add the items to the cart, however it navigates to the cart page which I do not want.

Drawer is enabled and functions on the product page and I have no idea how to achieve the same result from the button I have created. Is there a specific _target I should set or some other way to set the link details so that the page doesn’t navigate to the cart?

Reason being is there is multiple product suggestions and with each you would have to go back add to cart and then back etc.

Thanks for any help/insight.

C