Preview Edit button "Main Document" link always incorrect, crashes often

Hi,

I’m using the @nuxtjs/prismic plugin for a Prismic/Nuxt site. I’ve enabled Preview on production and the /preview endpoint is working beautifully :smiley:

However, when I click the “Edit Button” (:pencil2:) on the Nuxt site the doc link for “Main Document” is always incorrect. It lists the first “linked” doc as the main.

Additionally, when I try another page, open the Edit button. The modal expands, shows a loading icon, abruptly collapses and disappears. And doesn’t reappear on refresh. :frowning:

Any thoughts?
Thanks

Hi,

Welcome to the community!

The incorrect main document is an open issue that we are investigating and discussing in this thread (we can continue the discussion there):

For the second issue, can you try exiting the preview with the ‘X’ button and then changing page? This should clear the preview cookie and hopefully stop the app crashing.

Thanks.

1 Like

Hi @Phil – For issue 2, I tried closing before changing pages but the modal still crashes on the second page and only reappeared once when I cleared the cookie via Dev Tools.

I believe this is also a recent issue since we implemented some changes for chromes samesite cookies updates, the team seems to be on top of.