Allow displaying a specific revision

Created on 20 August 2021, over 3 years ago
Updated 22 July 2024, 9 months ago

Problem/Motivation

When linking to a view mode page from a non-default (non-current) revision, the view mode page will always default to the current revision, since View Mode Page doesn’t know how to interpret a revision’s base URL. Substituting a revision URL for the node URL in a view mode page pattern will not show the specific revision’s view mode.

Steps to reproduce

  1. Save one or more revisions of a node.
  2. If the URL for node 123 is /url/to/node, and a view mode page has the /%/custom-display-mode pattern, visit the same pattern for a different revision of the node, such as /node/123/revisions/789/view/custom-display-mode.

Proposed resolution

  1. Modify the path processor to allow recognizing revision paths.
  2. Add a controller to display entity revisions in specific view modes.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Needs review

Version

4.0

Component

Miscellaneous

Created by

🇺🇸United States antiorario

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.

  • 🇺🇸United States partdigital

    The patch in #6 could not apply to 4.0.2 because of formatting updates. I've rerolled the patch.

  • 🇮🇳India Mahesh Lakeshri

    The patch contains an incorrect permission for the display_revision route.
    Current patch works with the admin role but for other roles it gives "Access denied" error as the mentioned permission "access all revisions" does not exist, it should be "view all revisions".

Production build 0.71.5 2024