Products and Collections

New Member
1 0 1

when i search a product and enter on the product page, i'd like to be able to always go back to the collection page that product belongs to. if i search it from the home, when i go back, it will go back to the home. i wanna make it so even if i enter a product page from the home, when i go back i always go back to its collection (instead of any other page). is it possible to manipulate the code so a products points back always to its collection before anything else?