• Hey, great plugin, have used it on a couple of sites with great success.

    In the current instance I’m trying to use it, it’s a simpler setup as there are less subpages involved, but I’m finding it more difficult to implement.

    The secondDomain.com is correctly redirecting from primaryDomain.com/page, as are all of the subpages underneath (eg primaryDomain.com/page/subPage successfully automatically going to secondDomain.com/subPage).

    But, when I’m within secondDomain.com, if I click on any of the navigation links which should take me back to primaryDomain.com/someOtherPage, its instead showing me secondDomain.com/someOtherPage in the address bar.

    It’s like once I’m within the secondDomain.com, I can’t easily get back to primaryDomain.com – even clicking on the site logo which should take me back to primaryDomain.com in the address bar displays secondDomain.com.

    For obvious reasons I can’t set this up and leave it for someone to take a look, so I hope the above makes sense.

    Thanks heaps in advance,
    Min

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author matthias.wagner

    (@matthiaswagner)

    hy ??
    thank your for your kind words!

    first you should check, if the links in menu and logo in your website are full urls like https://primaryDomain.com/someOtherPage which is necessary for our plugin to detect them. if there are relative urls like /someOtherPage that would be the problem and you would need to change it in your theme.

    matt

    Thread Starter Minnnnn

    (@minnnnn)

    Hey Matt, no worries, credit where credit is due, it’s a really helpful plugin, and thanks for the speedy reply.

    For the navigation links, am just using wp_nav_menu. I can’t see any parameters that’ll let me change the structure of the link from relative to absolute (if there is a way that you know of, please let me know!). I miiiiight be able to use nav_menu_link_attributes to accomplish this…I’ll investigate.

    My alternative is to create an if around wp_nav_menu to see if we’re on the ID of the page secondDomain resolves to (or a child page of that id), and use a different nav menu that has the urls as custom links but that feels a little cumbersome if there’s some parameter that’ll let me force urls in the navigation to be absolute.

    Cheers,
    Min

    Plugin Author matthias.wagner

    (@matthiaswagner)

    hy,
    if you are using wp_nav_menu that should not be the problem. just check it in your source code if there are really absolute paths in the a-tags.

    for further investigation you would need to provide detailed information about your sites like described here please https://www.ads-software.com/support/topic/support-rules-2/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Once within mapped domain, all links point to that domain’ is closed to new replies.