Problem/Motivation

The route for the revision url is being determined by $route_name = $entity_type_id != 'node' ? "entity.$entity_type_id.revisions_diff" : 'entity.node.revision'; which is correct only for the node entity type, but wrong for other entity types.

Proposed resolution

Retrieve the url for the revision for all entity types through $entity->toUrl('revision');

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 2902258-2.patch2.19 KBhchonov

Comments

hchonov created an issue. See original summary.

hchonov’s picture

StatusFileSize
new2.19 KB
andreasderijcke’s picture

Status: Needs review » Reviewed & tested by the community

Works for me, tested on '8.x-1.0-rc1' on a Drupal 8.3.x

miro_dietiker’s picture

Status: Reviewed & tested by the community » Fixed

Committed this without additional test coverage for non-nodes as it reduces complexity and looks so much straight.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.