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.
If you don't add "http://" to the start of the destination URL, it won't parse correctly and looks like "http://example.com/www.google.com". The attached patch adds some more descriptive text to the field's help text, and validates if the URL starts with http:// during submission.
Comment | File | Size | Author |
---|---|---|---|
destination_url_error_handling.patch | 1.5 KB | SamLerner |
Comments
Comment #1
dalinThat's probably not what you want to do. It's more likely that you'd have an internal destination URL. Perhaps a simple description "External URLs must start with http." might be better.