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.
Almost all blogs and web sites I have seen which allow a poster to enter their home page allow that entry to be without an http:// on the front. They just detect if a URL class is present and add http:// if it is not, then do the sanity check. Drupal is rare in insisting on it being fully qualified, and my commenters complain to me about this.
The patch is simple, just insert some code in comment.module before if (!valid_url($edit['homepage'], TRUE)) { to check if $edit['homepage'] has a URI type at the front, and add http:// if it doesn't.
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2015-09-15 at 3.13.24 PM.png | 35.67 KB | jhedstrom |
Comments
Comment #1
RobRoy CreditAttribution: RobRoy commentedGood idea. Care to provide a patch?
http://drupal.org/patch
Comment #2
marcingy CreditAttribution: marcingy commentedBumping version
Comment #3
jhedstromThis field has been removed from anonymous comments: