TOC block isn't displayed in the Latest version

Created on 14 December 2021, almost 3 years ago
Updated 4 March 2024, 9 months ago

Problem/Motivation

If a page is edited and saved as a draft the TOC block isn't displayed in the Latest version tab.

Steps to reproduce

  1. Create a page with a TOC block
  2. Edit the page and Save it as a draft
  3. The View tab (current version of the page) has the TOC block, but it's not shown on the Latest version tab.

Proposed resolution

In the /toc_api/src/Plugin/Block/TocBlockBase.php fix function getCurrentNode() by providing the missing option for entity.node.latest_version route name.

Remaining tasks

Needs review.

User interface changes

No.

API changes

No.

Data model changes

No.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇿New Zealand tatianag

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024