Problem/Motivation
Related to https://www.drupal.org/project/visual_editor/issues/3440911: when content moderation is enabled and user clicks on "Latest version" tab and the node is in draft state, the iframe should be showing latest version rather than published version.
Steps to reproduce
- Enable content moderation
- Set content moderation settings for node
- Use the full node edit form and create a draft version.
- Click the "Latest version" tab - notice the iframe is still showing published version vs. latest version.
Proposed resolution
Check for latest version route and use the latest node revision from route param to build iframe url.
We need to check for access also to view latest version
Issue fork decoupled_preview_iframe-3440912
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
apmsooner commentedComment #4
apmsooner commentedComment #5
jmolivas commentedMR seems ok to merge
Comment #6
apmsooner commentedComment #8
apmsooner commented