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

  1. Enable content moderation
  2. Set content moderation settings for node
  3. Use the full node edit form and create a draft version.
  4. 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

Command icon 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

apmsooner created an issue. See original summary.

apmsooner’s picture

apmsooner’s picture

Status: Active » Needs review
jmolivas’s picture

Status: Needs review » Reviewed & tested by the community

MR seems ok to merge

apmsooner’s picture

Status: Reviewed & tested by the community » Fixed

  • apmsooner committed ecbd73d7 on 1.0.x
    Issue #3440912 by apmsooner: Wrong node version showing "Latest version...
apmsooner’s picture

Status: Fixed » Closed (fixed)