Polylang and search action
-
Hey,
Thanks as always for all the work.I am using a custom front-page template (theme developed by me), the polylang settings have it so that permalinks are blogurl/**/page , ** being the current language
If I invoke
home_url( '/' )
as done by searchform.php in the home page, it correctly uses the webpage.com/**/? method,however, if I use it in another page, say in the 404, or the search results page, then it omits the current language and does webpage.com/? instead.
I currently have it fixed by replacing instances of home url with
<?php echo pll_home_url() ?>
but wanted to check in to see if this was intended behaviour
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Polylang and search action’ is closed to new replies.