Edit page link in secondary nav does not support content moderation

Created on 22 November 2023, about 1 year ago
Updated 28 June 2024, 6 months ago

Problem/Motivation

Currently the edit node button on the secondary navigation works great when you are viewing a node, however when you are viewing the latest version it just shows a back to admin link, could this be updated to show the same edit link?

Steps to reproduce

1. Create a published node
2. Go to view node and see the "Edit x" button in the secondary nav
3. Create a new draft of that node
4. Go to review ("node/x/latest")
5. See that the secondary nav button now says "Back to admin"

Proposed resolution

When checking against the canonical route check for both canonical and latest_version as the latter part of the route name.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom andy_w

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