Download & Extend

Allow 128 chars in URL alias path

Project:Drupal core
Version:7.x-dev
Component:path.module
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

In path.module in function path_form() in field 'dst' is set #maxlenght characters limit to 64 but in database is possible set 128 character path alias...

  $form['dst'] = array(
    '#type' => 'textfield',
    '#default_value' => $edit['dst'],
    '#maxlength' => 64, // HERE
    '#size' => 45,
    '#description' => t('Specify an alternative path by which this data can be accessed. For example, type "about" when writing an about page. Use a
    '#field_prefix' => url(NULL, NULL, NULL, TRUE) . (variable_get('clean_url', 0) ? '' : '?q=')
  );

Comments

#1

Version:5.2» 5.5
Assigned to:Anonymous» ivanjaros

Hi. I'm using latest version - Drupal 5.5 and i have recently noticed this bug too. So someone should fix it.

#2

Title:In URL aliases - edit, destination field maxlenght is set only for 64 chars but alias can be 128 chars long» Allow 128 chars in URL alias path
Version:5.5» 6.x-dev
Category:bug report» task
Assigned to:ivanjaros» Pancho

This is no bug, as the inconsistency poses no problem. Rather it is a feature request, one that in fact applies to D6 as well.
I would second enlarging the allowed path length to 128, but we need to make sure this is consistent.
No idea, if this has a chance to get into D6 though.

#3

Version:6.x-dev» 7.x-dev
Assigned to:Pancho» Anonymous

Moving to D7 queue.

#4

Status:active» fixed

This has been fixed in HEAD and D6.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.