In the vertical tabs of node edit form, disabling 'Generate automatic URL alias' is not preserved when the node is saved.

Unchecking 'Generate automatic URL alias' locks up the 'URL alias' field. The field becomes unclickable/uneditable: it is impossible to create a custom alias. This behavior is the opposite of what it is in Drupal 6 (field is locked unless 'Generate automatic URL alias' is unchecked - this is the proper behavior).

- Drupal 7.14
- Pathauto 7.x-1.0
- Internationalization 7.x-1.5
- Multilingual support is Enabled with translation on most content types.

CommentFileSizeAuthor
#2 pathauto-custom-alias-1576692-3.patch650 bytesjtti
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jtti’s picture

I am seeing this on version 7.x-1.1.

jtti’s picture

Version: 7.x-1.0 » 7.x-1.1
Assigned: Unassigned » jtti
Status: Active » Needs review
FileSize
650 bytes

And here is a patch.

Dave Reid’s picture

Status: Needs review » Needs work

That logic is incorrect unless we have a bug in the Javascript states system. The patch would be changing the logic to say if the checkbox is checked, then the field should be enabled, which is not the desired behavior.

jtti’s picture

Yeah I understand that the logic is backwards, but that patch does make enabling / disabling the textbox function properly (at least on my site).

ayushjn’s picture

Status: Needs work » Closed (fixed)

May be this has now been fixed in 7.x-1.2 release. I did not find any such issue. Report if otherwise.

alesel’s picture

I had this issue. 7.x-1.2
thx for post #2

bisonbleu’s picture

Also having this issue with 7.x-1.2. Tried with the latest dev (7.x-1.2+13-dev), same problem. The patch above doesn't seem to help/work.

For example, in the node/edit form, when I try to uncheck 'Generate automatic URL alias ' and manually set the alias, the new alias config appears not to be saved.

SOLUTION - at admin/config/search/path, I searched and found the original alias (company) as well as the new one I was trying to save (about-us/company). Deleting the unwanted alias solved my problem. Now my node is properly aliased as about-us/company.