I want Drupal comments to work like every other blog’s comments. Who are writing their homepage URL can write “www.example.com,” or “http://www.example.com,” and they both work. Right now, Drupal throws an error if the URL doesn’t contain “http://.”
Share
You could override the
comment_validatehook in/modules/comment/comment.moduleand modify the validation code to insert thehttp://bit into the URL if it’s not already there. The changed code would look something like:You would also need to override the
comment_form_validatehook: