All internal path redirects are unpublished when translation is unpublished

Created on 20 February 2023, over 1 year ago
Updated 1 March 2024, 9 months ago

Problem/Motivation

This piggybacks off of the work here:

πŸ“Œ Add internal path redirect support for multilingual sites Needs review

but tracking separately, so this is not overlooked.

In quant_node_translation_delete, it calls Seed::unpublishNode which in turn unpublishes all redirects. The content seems okay though (only the translation is unpublished).

Steps to reproduce

  1. Install Drupal in English
  2. Install and configure quant, language, and content translation modules
  3. Use branch from πŸ“Œ Add internal path redirect support for multilingual sites Needs review
  4. Add another language
  5. Create a published node with alias in English
  6. Create translation of node
  7. Unpublish translation
  8. Result: English content is published, translation is not, all internal path redirects are unpublished
  9. Expected result: English content is published, translation is not, English internal path redirects is published, translation internal path redirect is not

Proposed resolution

Update logic to handle internal path redirects for each language as appropriate.

Remaining tasks

  1. Debug
  2. Update code
  3. Review and test
  4. Commit :)

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.71.5 2024