Language-neutral path aliases are not deleted with the parent entity

Created on 30 September 2025, 7 days ago

Problem/Motivation

In #2539634: PathItem::delete() never runs because the path field type is a computed field in disguise we combined the code paths for deleting path aliases when the parent entity or just one of its translations are deleted, but forgot about language-neutral aliases.

Steps to reproduce

- on a site with at least two languages (e.g. English and French)
- create a node in the default site's language (e.g. English) without specifying an alias on the node form
- create a language-neutral alias for that node (from /admin/config/search/path/add)
- delete the node and notice that the path alias was not deleted

Proposed resolution

Fix it.

Remaining tasks

Review.

User interface changes

Nope.

Introduced terminology

N/A

API changes

Nope.

Data model changes

Nope.

Release notes snippet

N/A

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

path.module

Created by

🇷🇴Romania amateescu

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024