Back button. Change url in shopify integration?

Questions & AnswersCategory: QuestionsBack button. Change url in shopify integration?
Marc asked 1 month ago

Is it possible to change the “back” button to a certian URL instead last visited page? 
 
And if, how? 

1 Answers
Tom van de Wielen Staff answered 1 month ago

Hi Marc,
 
This is can be done through javascript.
First, You can disable the default functionality through javascript:

document.querySelector(".expivi-closer").removeAttribute("data-expivi-close");

Second, attach your own logic to the button:

document.querySelector(".expivi-closer").addEventListener("click", function(){});