Problem/Motivation
As part of #3484575: Move the Edit button outside the more actions drop down, the edit button was declared as primary page action for node edit page.
If Content Moderation is enabled and, there is any available forward revision or the current entity, when visiting the latest revision page, the Edit page action should be primary as well.

Steps to reproduce
- Install Umami and enable Navigation Top Bar module
- Edit any existing article or basic page and create a draft version
- Confirm that "Latest version" option is added to the page actions dropdown
- Click on that option
- Confirm that Edit button is displayed as a regular page action instead of a primary one.
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | edit-latest-version-after.png | 141.82 KB | plopesc |
| edit-latest-version.png | 144.55 KB | plopesc |
Issue fork drupal-3501934
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:
- 3501934-navigation-top-bar
changes, plain diff MR !10996
Comments
Comment #3
plopescCreated MR that address the reported bug.
Screenshot of the new behavior in Latest version page.

Comment #4
plopescComment #5
berdirLooks good to me and the test class would be useful to extend upon in #3501332: Display content moderation state in the Navigation Top Bar
Comment #9
nod_Committed 74bdd70 and pushed to 11.x. Thanks!