I
I
ivansalyga2018-07-23 10:42:07
WordPress
ivansalyga, 2018-07-23 10:42:07

Incorrect choice of the language version of the search results?

Site shop in two languages: Ukrainian and Russian. The main Ukrainian I am using polylang. I ran into a search problem. After filling out and submitting the search form, the results page is displayed in Ukrainian, regardless of which language version of the site this search form was sent from. At the same time, if, already on the results page, and switch the language to Russian, the page switches to the desired language version. Question: how to make the site display the results page in the language version in which the form was filled out, that is, Russian? Site with the problem: https://oliver-posud.com.ua

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Talalaev, 2018-07-23
@neuotq

You have a hard-coded address for the request in the search form, action="https://oliver-posud.com.ua/"which is why it turns out that the search request goes to the Ukrainian version.
In short, you need to fix the form template so that it takes into account the selected language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question