I have a custom modal in Magento 2 , using knokoutjs. This modal has a Continue Shopping button :

'buttons': [ {
                text: 'Continue Shopping',
                click: function () {

Close modal function:

 closeModal: function () {

On the category listing page, when modal is closing, it's redirecting me to footer. On product page view works just fine. Any Ideas?

  • If it works on one page and not on other page, debugging is only the option, first try with single product category page – Yash Patadia Feb 21 at 6:39

Your Answer

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

Browse other questions tagged or ask your own question.