• Resolved tommucke

    (@tommucke)


    Hey there,

    i am currently using the plugin and in most cases it works well. I noticed however that the links behind my logos do not get changed (all other links do get changed correctly). Looking into the theme i am using i came to the conclusion that this link gets generated using home_url with path = “/” and scheme = null. Looking further into it all links using this function to get there links do not get replaced on the page.

    In Case anyone will ask this: There is currently one mapping defined, mapping placeholder.com/magazine to / which lies on a different domain (placeholder is just a placeholder)

    I would be really thankful for help with this,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tommucke

    (@tommucke)

    I took a short look at the source code. Since the source code calls the function itself and depends on it i understand why it does not get changed. Have you guys considered implementing a copy of it yourself and then adding a filter to the original?

    However if anyone else is having simular problems here is my workaround using a child theme:

    
    $FALKE_MultipleDomainMapping = FALKE_MultipleDomainMapping::get_instance();
    $FALKE_MultipleDomainMapping->replace_uri(home_url( $path, $scheme )); // use this instead of home_url
    • This reply was modified 2 years ago by tommucke.
    • This reply was modified 2 years ago by tommucke.
    • This reply was modified 2 years ago by tommucke.
    Plugin Author matthias.wagner

    (@matthiaswagner)

    hy,

    thanks for your post. glad to hear you found a workaround and also made it as an update-save solution with the child theme ??

    we will add this to our backlog for further investigation later.

    matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘home_url not changing correctly’ is closed to new replies.