Did not notice when, but the product search widget stopped working (404 error). I use a bilingual website. The address of the search page looks like this: skeyndor.lv/lv/lv/?s=fresh&post_type=product. It is seen that there is a duplication of the language – /lv/lv/. (or /ru/ru/) I use the plugin Polylang.
Tell me what needs to be fixed? How to remove an unnecessary /lv/?