When I go to URL blog/feed the RSS feed has a bad <link> value.

I am getting: <link>?q=blog</link>

It should be: <link>http://www.unicom.com/ctiaustin/new/?q=blog</link>

I will attach a patch that fixes the problem.

CommentFileSizeAuthor
link-url-fix.txt1021 byteschip

Comments

chip’s picture

I may have made a mistake here. The <rss> tag has an xml:base parameter, so the URL produced may be correct after all. Somebody may need to check the RSS 0.92 spec to verify.

Still, I'm wondering if it's wise to depend that the RSS reader has enough of a conforming XML implementation to understand this, rather than just specifying a full URL. A full URL would seem to be the more conservative thing to do.

fx-1’s picture

RSS .092:

" <link> -- A URL pointing to the website named in the . Maximum length is 500 characters."

Keyword here: URL. Not "path". Looks like this is valid to fix. But, I haven't been following the RSS wars very close.

jonbob’s picture

This is fixed in CVS; I doubt it will be patched in older versions, since the base href is present and 4.5 is not far off. Those interested can apply the patch given here, though.

Anonymous’s picture