As part of Rosetta, #3638830: URL aliases saved outside the entity form are not validated proposes moving the URL alias check out of PathWidget (form) into a ValidPathAlias constraint. That way REST, JSON:API and other tools get the same validation as the node form.

#3638830 would stop calling validateFormElement(), which affects Pathauto: PathautoWidget overrides validateFormElement() to skip the check when "Generate automatic URL alias" is checked.

As a solution, I believe Pathauto can move the skip into the hook_field_info_alter() it already implements.

However, if you'd rather have something different from core, feel free to chime in on #3638830.

Comments

dries created an issue. See original summary.