Plugin Author
Chouby
(@chouby)
Did you try with the development version? I believe I fixed a similar bug some weeks ago. So maybe it works now.
http://downloads.wordpress.org/plugin/polylang.zip
Plugin Author
Chouby
(@chouby)
My bad. I looked at my code and the development version does not solve the issue. I will come back on this later.
Plugin Author
Chouby
(@chouby)
I just updated the development version (1.4.2.4). Could you check if it solves the issue for you?
http://downloads.wordpress.org/plugin/polylang.zip
I also have problems with the different domain setup. On the moment I have two languages, dutch (default) and english. On home switching between domains goes like it should. If you visit a page and switch from default to another language all is fine as well. But when you try to switch from a page (non default language) to the default language, the anchor points to the right slug, but the current domain instead of the target domain. It seems the like the permalink filter processes the value.
I tried the widget, added it to the navigation and tried the development version from above. After a little bit of digging everything works by adding this:
include/switcher.php:68 (added after url apply filters)
$url = str_replace(get_home_url(), $language->home_url, $url);
Maybe it’s not the right solution, but I couldn’t find the appropiate filters.
My setup: I have a WordPress Multisite setup and am using the WordPress MU Domain Mapping plugin to add the second domain as an alias to the (sub)site where Polylang is active.
Can you please look into it? Thank you in advance, I really like your plugin so far!
Hi Chouby,
I just tested the update you sent me… It’s almost working! It is now redirecting to : http://domain2.comhttp//domain2.com/en-this-page-starts-with-en/
So it finds the correct url to redirect to, but it duplicates the http://domain2.com/.
Thanks once more !
JF
Plugin Author
Chouby
(@chouby)
@plastichabitat
try setting the option PLL_CACHE_HOME_URL to false in wp-config.php. If it does not work, please open a new thread, not to pollute this one.
@jf_bertrand
It works correct now on my test site. Just in case, could you try to resave your Polylang settings?