Reply 300438 to: Ajax Search not working with multi language Polylang

Avatar: Fiz
Fiz
Participant
August 30, 2021 at 04:17

Hi, ajax search is now working with latest update. It will add lang query when search icon is clicked but did not maintain/redirect to the language folder url.

english url (default) = https://domain.com/
chinese url = https://domain.com/cn/

But for the ajax search, when input and clicked search icon, the url will go to the correct product language but all other interface will use default lang which is EN.
search result url like below:
https://domain.com/?s=夏&post_type=product&et_search=true&lang=cn

It should go to this url to retain everything in CN when requested from CN page.

https://domain.com/cn/?s=夏&post_type=product&et_search=true&lang=cn

how can I achieve this on htaccess?

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.