I see that there a space between prismic.js and ?repo in the script: <script async defer src=//static.cdn.prismic.io/prismic.js ?repo=example-repo&new=true></script>
No , there is no space in actual code. This error was copied from console output maybe that’s why there is an extra space.
Also i was wondering is New toolbar activated for my account ? ( maybe not toolbar is not activated that’s why i still see old script in Settings > Previews > Script )
The correct one is the one suggested in your repo settings.
We are in the process of updating our documentation to make this clearer and I’m going to contact the dev team to make that console warning that you’re seeing clearer.
Ok i’ll wait for the documentation and the clearer console warning meanwhile I’m using script from setting of my repo ( although i still see deprecation warning) .
Can you help me understand why has my preview functionality stopped i have tried debugging everything is same ( from the time it was working).
Thanks for your quick answer. I got the preview working when I'm logged into Prismic and go into preview via the eye button. I see my saved but not published changes with a Prismic toolbar.
Only thing I can't get to work is the share link. When I open the Prismic generated link in incognito browser, I see only published changes, not the saved ones. Any pointers on this one?
This is most likely because our preview system uses cookies to build previews on top of your website application in the browser, so maybe you have cookies turned off in incognito?
That's true. And when previously testing also with Safari, it didn't work either. Gladly the Troubleshooting site mentioned the cross-site cookie prevention being on by default.