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 |
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 commentedIs this with or without the link module?
Comment #2
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 commentedThanks Berdir, This is now fixed. -- http://drupal.org/commitlog/commit/15150/a63b3a3f04ce6d48e57e1c05ce220ff...