﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16753	Handle protocol-relative URLs in syndication	cato	nobody	"When trying to use protocol-relative URLs (see [http://tools.ietf.org/html/rfc3986#section-4.2 1] or [http://tools.ietf.org/html/rfc3986#section-4.2 2]) like for example returned by [https://github.com/jezdez/django-hosts django-hosts] the syndication framework prepends the protocol and the domain. This way a valid URL is transformed into an invalid or at least useless URL.

Example:

{{{
class MyFeed(Feed):
    def item_link(self, item):
       url = reverse_crossdomain(""myhost"", ""myview"", 
                            view_kwargs={'some': 'argument'})
       return url
}}}

The value of {{{url}}} is ""//example.com/path/to/view/"" and the rendered feed contains {{{http://example.com//example.com/path/to/view/}}}.

The syndication framework should either just pass the url as it is or prepend the protocol. For the case of prepending the protocol a patch is attached
"	Bug	closed	contrib.syndication	dev	Normal	fixed			Accepted	1	0	1	0	0	0
