Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 302762

Add useful local tasks tabs when viewing a node revision

$
0
0

Problem/Motivation

Node primary local tasks tabs do not appear on node revisions on entity.node.revision route. As a content author, I would expect to see the 'View', 'Edit', 'Delete' and 'Revisions' tabs when navigating to previous revisions, so I could navigate back to the revisions path, view or edit the node.

Steps to reproduce

* Install Drupal 11.x using the Standard profile
* Set Claro as the default theme.
* Create a basic page node and save it
* Edit the basic page node and create a new revision
* Go to the node's revisions tab at the path: node/1/revisions
* Click the initial node revision to view it, /node/1/revisions/1/view
* Notice that there are no primary tabs present at this path
Screenshot showing no primary tabs

Proposed resolution

* adding the following link to node.links.task.yml, displays all tabs, but duplicates Revisions tabs: 1 for entity.node.version_history route/task and one for entity.node.revision route/task

entity.node.revision:
  route_name: entity.node.revision
  base_route: entity.node.canonical
  title: 'Revisions'

Screenshot showing the view, edit, delete and revisions primary tabs after applying the proposed solution

Remaining tasks

N/A

User interface changes

Primary tabs are visible when viewing the list of revisions of a node to make it easier to navigate.

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A


Viewing all articles
Browse latest Browse all 302762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>