pathauto compatibility

Created on 29 October 2024, about 2 months ago

Problem/Motivation

When I try splitting off a translation of a node type that has a pathauto pattern, I find that the newly created node gets a path alias created by pathauto according to its pattern, instead of the alias it should be getting. It looks like during Node::create() for the new node (line 105 of SoftTranslationsSplitTranslationsForm.php), pathauto steps in and sets the $new_entity->path->pathauto property to PathautoState::CREATE because it sees there’s a matching pattern.

Proposed resolution

Check for the existence of pathauto, and add a pathauto property to the path array specifying that pathauto should leave this one alone.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States ksenzee Washington state

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