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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | pathauto-custom-alias-1576692-3.patch | 650 bytes | jtti |
Comments
Comment #1
jtti CreditAttribution: jtti commentedI am seeing this on version 7.x-1.1.
Comment #2
jtti CreditAttribution: jtti commentedAnd here is a patch.
Comment #3
Dave ReidThat 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.
Comment #4
jtti CreditAttribution: jtti commentedYeah I understand that the logic is backwards, but that patch does make enabling / disabling the textbox function properly (at least on my site).
Comment #5
ayushjn CreditAttribution: ayushjn commentedMay be this has now been fixed in 7.x-1.2 release. I did not find any such issue. Report if otherwise.
Comment #6
alesel CreditAttribution: alesel commentedI had this issue. 7.x-1.2
thx for post #2
Comment #7
bisonbleu CreditAttribution: bisonbleu commentedAlso 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 asabout-us/company
.