Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author BlockMeister

    (@blockmeister)

    Hi Kieran,

    As it just so happens, I noticed this yesterday too.
    In my case it was caused by the WPML plugin I was testing with.

    BlockMeister checks for the preview=true parameter in the URL to show the preview, but WPML causes a redirect and removes that param.

    From your sample URL I see that on your site the same might be happening, because the url should
    be: https://mysite.com/?blockmeister_pattern=test-pattern&preview=true

    Please disable any other plugin to find the plugin that is causing the incomplete redirect.

    That said, I am testing an alternative way to detect when previews should render or not (instead of relying on the presence of the preview param). This would then also enable the view option to work.

    • This reply was modified 2 years, 4 months ago by BlockMeister.
    Plugin Author BlockMeister

    (@blockmeister)

    Tested on 3.1.4, vanilla theme with no other plugins

    Oeps, missed that. So in your case it’s not caused by another plugin. But something is causing a redirect, else the preview=true param should be present at the end of your URL?

    Anyway, the alternative test logic I mentioned should solve the problem anyways in the upcoming release. I will let you known when that is released.

    Thread Starter kierancalv

    (@kierancalv)

    Hi

    WPML was still active in my case. Sorry thought it was disabled ??

    So the preview URL does actually work perfect. Its the view pattern (bottom left of the screen after you save) that does not work as it is of course missing the &preview=true.

    I am sure you are aware of that one though ??

    Loving the plugin, it’s exactly what I needed to get some less inexperienced guys start building pages from blocks we create.

    Thanks for your help,

    Plugin Author BlockMeister

    (@blockmeister)

    Hi

    I worked around the WPML issue in the latest release.

    Both preview and view pattern should work now, even with the WPML issue as mentioned in my previous reply.

    Can you confirm?

    Thread Starter kierancalv

    (@kierancalv)

    Working perfectly now

    Thanks ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Preview pattern does not work’ is closed to new replies.