Hello. How do I get the back button on my product page to go back to the collection page vs just windows history?
Currently the coding for this button is-
<a class="btn" onclick=" window.history.back();">Back</a>
I like the style of the button I just want it to navigate back to the collections page
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.