Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Path Alias element is a static 30 weight. This means that if you putz with the form display of a node content type with the path module enabled, the field will sometimes "unexpectedly" show up in the middle of everything. We either need a way to move the path alias field around on the form via the UI, or we need to pick one end or another so it doesn't get in the way.
I personally vote moving it always to the end like I did with taxonomy in #2655328: [PP-1] Relations Form Element static at weight 10.
You can see this in path_form_node_form_alter().
Comments
Comment #2
generalredneckComment #4
markdorisonComment #14
catchWe should take a similar approach to #3158934: Update taxonomy term base fields (parent and weight) to be configurable on form display. Form alter to change the #weight is a workaround until that's done.