Wrong node version showing "Latest version" with content moderation enabled

Created on 14 April 2024, 6 months ago
Updated 17 April 2024, 5 months ago

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

πŸ› Bug report
Status

Fixed

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024