Installing Content Translation module breaks Rest resources

Created on 20 June 2023, over 1 year ago
Updated 31 July 2024, 5 months ago

Problem/Motivation

Simply installing Content Translation on a site with rest resources breaks those resources. This is because Content Translation adds drupal:content-translation-overview links (and others) to entities, but it does not declare those relation types. Rest resource URLs throw an unhandled exception due to this.

Note that this was found (somewhat by accident) in 📌 [meta] Improve support for entity types without a canonical link Needs work but also has come up in #2135829: EntityResource: translations support .

See also #3088282: Missing Views link relationships when Views UI installed for a similar issue where Views UI did not provide link relation types for links it was using.

Steps to reproduce

  1. Install Rest and Node and visit the shipped node resource for a given node.
  2. Install Content Translation.
  3. Reload the resource.

Proposed resolution

Provide the respective link relation types.

Remaining tasks

Subsystem maintainer review

User interface changes

-

API changes

-

Data model changes

Content Translation now provides the following link relation types:

  • drupal:content-translation-overview
  • drupal:content-translation-add
  • drupal:content-translation-edit
  • drupal:content-translation-delete

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.3

Component
Content translation 

Last updated 2 days ago

No maintainer
Created by

🇩🇪Germany tstoeckler Essen, Germany

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024