• First of all thanks for your great work. Just have a little problem that I would like to point out. Here are the steps to replicate:

    1- Domain1.com = English site
    2- Domain2.com = French site
    3- Navigate to : domain2.com/en-this-page-starts-with-en
    4- Manually change domain but keep slug: domain1.com/en-this-page-starts-with-en
    5- You will be redirected to: domain2.com-this-page-starts-with-en (notice the /en is missing from the start of the slug). Redirection works all the time EXCEPT when the slug starts with the language code.

    Thanks, I hope I was clear enough for you to understand, of course I worked around the problem by just changing the slug, but thought I would bring this to your attention. Let me know if you need more details.

    Thanks again !

    https://www.ads-software.com/plugins/polylang/

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.
    https://downloads.www.ads-software.com/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?
    https://downloads.www.ads-software.com/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!

    Thread Starter jf_bertrand

    (@jf_bertrand)

    Hi Chouby,

    I just tested the update you sent me… It’s almost working! It is now redirecting to : https://domain2.comhttp//domain2.com/en-this-page-starts-with-en/

    So it finds the correct url to redirect to, but it duplicates the https://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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Polylang – Language from different domains’ is closed to new replies.