This is a pretty uncommon issue but one of the RSS feeds I follow uses protocol-relative links (e.g. a link in the form of //example.com/foo rather than the more common http://example.com/foo) because the guy who runs the site seems to think that saving 5 characters here and there is much important for reducing bandwidth costs than making his articles more concise. He also insists (correctly, if stupidly) that this is a published portion of whatever RFC is responsible for URI schemata, and points out that web browsers themselves have no problem with it.
Of course, he conveniently ignores the fact that some RSS readers might be viewed via https: and that the sites in question might not actually work equivalently from an https: vs. http: URL, and that does violate pretty much everything. He also ignores that RSS feeds are supposed to be portable and not use relative links OF ANY KIND to begin with.
Regardless of that, and realizing that this is a stupid niche request that only exists for what appears to be only this one stupid site on the whole stupid Internet, would it be possible for tt-rss to rewrite protocol-relative links correctly?
Protocol-relative links being rewritten incorrectly
- markwaters
- Bear Rating Trainee
- Posts: 32
- Joined: 20 May 2008, 13:10
- Location: France
- Contact:
Re: Protocol-relative links being rewritten incorrectly
You might want to have a look at http://www.privoxy.org/
This proxy server has the ability to rewrite URLs and so could reassemble the 'damaged' links.
It also does a lot of other useful stuff.
Good Luck
Mark
This proxy server has the ability to rewrite URLs and so could reassemble the 'damaged' links.
It also does a lot of other useful stuff.
Good Luck
Mark
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: Protocol-relative links being rewritten incorrectly
Unless there's a patch involved I don't see this happening, sorry. 

Re: Protocol-relative links being rewritten incorrectly
Where does URL rewriting take place? I'd be more than happy to take this on myself - it seems like it should be a pretty trivial thing to fix.
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: Protocol-relative links being rewritten incorrectly
rewrite_relative_url(), I think.
Re: Protocol-relative links being rewritten incorrectly
That was easy! Pull request submitted.
Who is online
Users browsing this forum: No registered users and 7 guests