Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Do you use a domain mapper plugin or do you have a custom .htaccess-file?

    Cheers,
    Dennis.

    Thread Starter info2grow

    (@info2grow)

    I have neither of those. Do I need them to change the links in the language switcher widget?

    What is strange is that the links are correct in the page editor just not the widget.

    Plugin Author Dennis Ploetner

    (@realloc)

    Yes, it is indeed strange and that’s why I think that there is something which interferes with the get_permalink core-function. Is there any filter in your functions.php like this: https://codex.www.ads-software.com/Plugin_API/Filter_Reference/the_permalink ?

    Thread Starter info2grow

    (@info2grow)

    First off thank you for taking the time to even read this!

    No mention of add_filter, the_permalink, or $url in functions.php

    The href that is generated makes no mention of the domain
    a href=”/investors/stock/” title=”English “

    Is there anywhere I am missing where the subdomains could be mapped to different languages? Maybe I missed a step?

    Thread Starter info2grow

    (@info2grow)

    Found it, it was a plugin. My apologies for taking up your time!

    The offending plugin was

    Relative URL
    Relative URL applies wp_make_link_relative function to links (posts, categories, pages and etc.) to convert them to relative URLs. Useful for developers when debugging local WordPress instance on a mobile device (iPad. iPhone, etc.).

    Version 0.0.9 | By Tunghsiao Liu

    Plugin Author Dennis Ploetner

    (@realloc)

    OK, very good and thanks for pointing that out.

    Cheers,
    Dennis.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Language Switcher Points to Current Subdomain’ is closed to new replies.