I’m using Bricks + WPML and I noticed a language-related issue with the Live Search component.
On my website:
- Default language (English) is on the root →
https://yourdomain.com/ - Secondary language (Turkish) is under
/tr/→https://yourdomain.com/tr/
Everything works perfectly with Live Search — the AJAX results load correctly in the active language (Turkish or English). ![]()
However, when the user presses Enter in the search input (to go to the full search results page),
the search query always redirects to the default language URL instead of the current one. ![]()
For example:
When I search from the Turkish site (/tr/), it goes to:
https://yourdomain.com/?s=keyword
but it should go to:
https://yourdomain.com/tr/?s=keyword
Because of this, the “Search Results” page loads in the wrong language (English).
Live Search works fine — the issue only happens when hitting Enter.
Expected behavior:
- English site →
/?s=keyword - Turkish site →
/tr/?s=keyword
Additional note:
It seems this issue is also affecting the “no results found” state.
When a user searches for something that doesn’t exist, only the English “no results” message and English results page appear.
I would like to show the Turkish “no results” template and message when the user is on the /tr/ version of the site.
Suggestion:
Please make the Live Search form respect WPML’s current language when submitting the query (either dynamically update the form action URL or provide a per-language setting in the Search element).
