Tombstones URLs are only created for English paths

Created on 14 July 2025, 14 days ago

Problem/Motivation

The 'en' language is hardcoded in the path alias creation code; this way, Tombstones wouldn't work correctly in multi-language environments.

Steps to reproduce

Check the \Drupal\tombstones\TombstonesService::createTombstoneForDeletedNode():

    \Drupal::service('path.alias_storage')->save("/node/" . $tombstone->id(), $tombstone_metadata['path'], "en");

Note the path.alias_storage service usage is being handled in πŸ› You have requested a non-existent service "path.alias_storage" Needs work , the code above is for reference only.

Proposed resolution

Retrieve all node translations before removal, make sure to create aliases for all of them.

Remaining tasks

Implement the fix.

User interface changes

Tombstones would be working for non-English pages as well.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine abramm Lutsk

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

Comments & Activities

Production build 0.71.5 2024