Increase the default maximum alias length

Created on 13 September 2023, over 1 year ago

Problem/Motivation

We often have editors ask why their autogenerated URLs are being truncated. We discovered that the default maximum alias length is set to `100` characters, which means we have to remember to increase it on each site we build.

I traced the history and found the first instance of the default value in this commit: https://git.drupalcode.org/project/pathauto/-/commit/dfec31c7f5519fb7eca...

That led me to #57046: Feed aliases fail when max length of URL is the same as the size of the dest column which discusses paths breaking because they were longer than the maximum of 128 characters set in the path table. That limit was increased to 255 characters in #288946: Increasing path length to 255 chars .

Proposed resolution

With that in mind, let's increase the default value to 224 which is 7/8ths of the column's maximum. That should still give plenty of room *31 characters) for trailing segments like `/edit` and `/delete` even in alternate languages.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada deviantintegral

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

Comments & Activities

Production build 0.71.5 2024