- Issue created by @plopesc
- 🇫🇮Finland lauriii Finland
How this is done by Next.js preview is they generate a token that allows the preview to be loaded with special permissions: https://github.com/chapter-three/next-drupal/blob/main/modules/next/src/.... This might be more complex than what we need but essentially what we'd want the preview to generate is the page as anonymous user, with permissions potentially elevated to view the specific piece of content regardless of it being unpublished.
A more pragmatic approach might be to just try to remove administrative items from the page similar to what's being done in https://git.drupalcode.org/project/same_page_preview/-/blob/2.1.x/same_p.... This might be acceptable even though it doesn't get us to a full solution because there could be custom administrative blocks that are hard for us to identify.
- 🇪🇸Spain plopesc Valladolid
I feel that Next.js preview could be more complex than we want and we could still have some issues about the exact permissions to assign to that anonymous user with steroids.
Could we start with the simpler path and iterate if that's not enough or the community asks for a more elaborated approach?
- Merge request !25Issue #3501374: Preview displays include Navigation Toolbars → (Open) created by lauriii