Hi there,
i must say, i have very little understanding of WPML or whether its getting in the way of these actions.
If i inspect the search form i see the opening tag:
<form role="search" method="get" class="search-modal-form" action="https://yourdomain.ca/?lang=fr">
And we can see the action="https://yourdomain.ca/?lang=fr"
includes the lang query string.
So in theory that should be consider in the resulting search terms ie.
https://yourdomain.ca/?lang=fr&s=my_search_term
But it does not. Hmmm…
How does the core Search Block perform ? Does it keep the lang parameter in the search results?
To test this:
1. In Appearance > Elements -> Add New –> Block Element.
2. In the elements settings set the element type to Search Modal
3. Add a core Search Block to the content.
4. Set the Display Rules to the Entire site.
This will swap our search form for that block.