I could reproduce the issue on my personal sample just by having the script on my webpage, nothing more.
After watching how it interacts on my cookie inspector, it seems that some the "io.prismic.previewSession" cookie is never deleted.
When you click on the cross, what happens:
it delete the "io.prismic.preview" cookie
reload the page
recreate the "io.prismic.preview" cookie because the "io.prismic.previewSession" cookie has not been deleted
After checking the code of the toolbar, the function that delete the "io.prismic.previewSession" cookie is called "demolishCookie" and is located in src/common/cookie.js
This demolish function has never been changed before so I don't think it is the issue here.
Users on Intercom have reported that they can't close the preview Session when clicking on the small cross:
Intercom Threads:
First Investigation:
I could reproduce the issue on my personal sample just by having the script on my webpage, nothing more.
After watching how it interacts on my cookie inspector, it seems that some the "io.prismic.previewSession" cookie is never deleted.
When you click on the cross, what happens:
After checking the code of the toolbar, the function that delete the "io.prismic.previewSession" cookie is called "demolishCookie" and is located in
src/common/cookie.js
This demolish function has never been changed before so I don't think it is the issue here.