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.
On node save, any field set as a URL gets trunked to "h" from http://* or https://*. This makes these fields unusable.
Comment | File | Size | Author |
---|---|---|---|
#3 | html5tools_urlwidget.patch | 677 bytes | Berdir |
Comments
Comment #1
ericduran CreditAttribution: ericduran commentedIs this with or without the link module?
Comment #2
ericduran CreditAttribution: ericduran commentedI just tested this out with the link field and it seems to work as expected.
I'm guessing the bug is when using it with a textfield right?
I'm changing the title to reflect that, also I would strongly recommend you use the url field with the link module. Because you'll get extra options such as the title text for the field :)
Comment #3
BerdirYeah, the problem is that you are unconditionally returning the $element for the url widget, so it is not inside the value key for the textfield type.
The attached patch makes the early return for urlwidget conditional based on the type.
Comment #4
ericduran CreditAttribution: ericduran commentedThanks Berdir, This is now fixed. -- http://drupal.org/commitlog/commit/15150/a63b3a3f04ce6d48e57e1c05ce220ff...