diff --git a/django/forms/fields.py b/django/forms/fields.py index 6b834af0c4..f2c3b97475 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -541,7 +541,7 @@ class URLField(RegexField): if value and '://' not in value: value = u'http://%s' % value # If no URL path given, assume / - if value and not urlparse.urlsplit(value).path: + if value and not urlparse.urlsplit(value)[2]: value += '/' value = super(URLField, self).clean(value) if value == u'':