Access to Page Revisions Link

Created on 23 July 2020, about 5 years ago
Updated 8 September 2025, 13 days ago

Problem/Motivation

Using Gutenberg in any content type with revisions enabled, you lose access to the content revisions tab, effectively disabling the revert-to-revision functionality.

Steps to reproduce

Edit any content type with revisions and Gutenberg Experience enabled (in this case, basic page content type).
Notice that access to the default tab interface his disabled—this interface is the only way to access the saved revisions of that content.

Proposed resolution

Either re-enable the default tab structure or add a link in the "More tools and options" menu for node revisions page (/node/[node number]/revisions)

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

💬 Support request
Status

Active

Version

1.11

Component

User interface

Created by

🇺🇸United States kevinhbruce Maryland

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

Comments & Activities

Not all content is available!

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

  • 🇹🇷Turkey emircan erkul Turkey
    
    /**
     * Implements hook_form_FORM_ID_alter() for node forms.
     */
    function gin_gutenberg_plus_form_node_form_alter(&$form, FormStateInterface $form_state) {
      $node = $form_state->getFormObject()->getEntity();
    
      // Leave early if Gutenberg is not enabled for this entity.
      if ($node instanceof NodeInterface) {
        return;
      }
    
      $nid = $node->id();
      $form['actions']['revisions'] = [
        '#type' => 'link',
        '#title' => t('Revisions'),
        '#url' => \Drupal\Core\Url::fromRoute('entity.node.version_history', ['node' => $nid]),
        '#attributes' => [
          'class' => ['action-link'],
        ],
        '#weight' => -10,
      ];
    }
    
Production build 0.71.5 2024