Hi, I'm on a Drupal 5 system and when I tried to edit an alias and make it longer than 64 characters, I got the error "dst cannot be longer than 64 characters". And this was confirmed in path.module in path_form, which sets maxlenght of 64 for both the 'src' and 'dst' textfields. Since the url_alias table sets these as varchar(128), why not push these textfields to at least 128 by default? I've changed these to 128 and haven't seen any problems. As a feature, I guess it would be nice to either dynamically set this maxlength (detect it from the url_alias fields?) or make it configurable somehow.

I deal with lots of long node titles on my site and in order to update a url alias, I am finding the need to change aliases more often. For example, when a title needs to be changed but I want to preserve the URL that has already been indexed, I want to edit the updated alias after changing the title (changed automatically by pathauto). If the title is too long, I can't use the path form because of this maxlength setting. I prefer to leave important modules like this in their original state, but I'm not seeing any alternatives at the moment. Any feedback?

Comments

bartezz’s picture

Hi,

I encountered this today as well;

"dst cannot be longer than 64 characters"

I don't understand why there is a limit on a path. I don't think the HTTP specification has a length limit of a URL but I could be wrong.
In any case 64 chars is kinda short and an option to increase this value would be nice. I'm using path_auto as well and this module has an option to increase the maximum alias length. Unfortunately doing it manually limits one to 64 chars.

Hope someone can point is in the right direction for a solution to this.

Cheers