[FR] Add the ability to detect live preview mode, when a user navigates to a different entry from the preview #15447
-
We show an edit button on the front-end for logged-in users with edit permissions. When showing the live preview for an entry, we disable the edit button by detecting that the entry is opened in live preview mode. However, when the user navigates to different parts of the site from within the preview mode, this detection fails. This leads to the user being able to edit a post from within the preview infinitely! To avoid cases like these, please consider adding the ability to detect live preview mode in all entries, not just the current one which is being edited. Edit: Updated screen recording & language clarification. Screen.Recording.2024-07-31.at.10.35.44-1.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for pointing that out! I’ve just resolved this for Craft 4.11 and 5.3 (72d1d57). |
Beta Was this translation helpful? Give feedback.
Thanks for pointing that out! I’ve just resolved this for Craft 4.11 and 5.3 (72d1d57).