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
Issue fork drupal-3549608
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
amateescu commentedComment #4
alecsmrekar commentedLooks great and makes sense, thanks!
Comment #9
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x and 11.2.x, thanks!