Problem:
When I search in Italian or English, when I click on the language selector, I do not stay on the search page. Instead, I am redirected to a product page.
Solution:
This was not caused by WPML. Custom code was used in this setup, causing a redirect