Forums › Forums › Search & Filter Pro › Switching language of the Search Result page with Polylang
Tagged: polylang
- This topic has 9 replies, 3 voices, and was last updated 5 years, 5 months ago by Ross.
-
Anonymous(Private) June 24, 2019 at 6:09 pm #214806
Hello,
When the user is on the Search Result page (en.example.com/search/) and he changes the language using the Polylang Language Switcher (for example German), he gets to a wrong URL (de.example.com/search/) where “search” should be replaced by the slug defined for the other language (de.example.com/suche/).
Search slug is NOT updated when switching languages on the frontend.
The user gets to a search page without any result and see the message “Sorry, no results were found.
Can you provide a solution please?
Thanks
Anonymous(Private) June 27, 2019 at 3:49 pm #215124There is only one WordPress site installation and all the domains/subdomains are pointing to the same directory.
Here is the Polylang documentation:
https://polylang.pro/doc/Thanks
Ross Moderator(Private) June 27, 2019 at 10:42 pm #215174Hi Hugo
I’m afraid with the display method
archive
we don’t support it right now.However, you could change the display method to
post type archive
and it should work.Also using the shortcode method to display results will work, as long as the pages they are embedded on are also translated etc.
I hope that makes sense?
Thanks
-
AuthorPosts