Support » Plugin: Multiple Domain Mapping on Single Site » Preview Page Button On Second Domain

  • Resolved coxy17



    I have found that when you go to preview a post using a second domain mapped to it, the preview button fails to load the correct page.

    This is the page url which should be loading
    e.g. 2019/06/guest-speakers-announced-for-fearne-cottons-happy-place-festival/?preview=true

    but instead the page loads like so

    I have found a post which explains the issue and wondered if there is a fix yet?

    I have managed to find a temporary fix by adapting @tenserd code but only going to keep this in my functions file if there is no fix being planned anytime soon?

    // Fix post preview button link to work with  Multiple Domain Mapping on Single Site Plugin
    function moogiet_fix_preview_link() {
    	$moogiet_path = get_permalink();
    	$moogiet_newurl = "$moogiet_path?preview=true";
    	return $moogiet_newurl;
    add_filter( 'preview_post_link', 'moogiet_fix_preview_link',30 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author matthias.wagner


    yes that will be fixed in the next version – planned for summer 2019 šŸ™‚

    Plugin Author matthias.wagner


    1.0 is released and this is already included. we decided to release what we have and keep pushing new features in smaller steps šŸ˜‰

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preview Page Button On Second Domain’ is closed to new replies.