Image thumbnail are displayed as links pointing to the image node.
The link is defined as a relative link (/node/...).

This works well with web pages and seems to be ok with RSS readers (I suppose they manage to rebuild the complete absolute address from the relative one appearing in the feed).
But this is a problem for example if you have a service using the RSS feed as input (for example: feedburner email notification service: it uses your site feed for its email notification service).

This issue would be avoided by providing an absolute link to the node in this situation (ex: http://www.sitename.com/node/...).

Comments

Sebo’s picture

I have managed to work-around this issue by changing the following code, in image.module file:

/**
 * Theme a teaser
 */
function theme_image_teaser($node, $size) {
---  return l(image_display($node, IMAGE_THUMBNAIL), 'node/'. $node->nid, array('html' => TRUE));
+++  return l(image_display($node, IMAGE_THUMBNAIL), 'node/'. $node->nid, array('html' => TRUE, 'absolute' => TRUE));
}
joachim’s picture

Status: Active » Closed (won't fix)

I'd say it's up to the feedburner service to be a bit more intelligent and work out where its relative URLs are coming from!

BTW, there is no need to hack the module.
For any function whose name begins with 'theme', see http://drupal.org/node/341628

Sebo’s picture

Ok, I thought it was not correct to have relative paths into a feed, hence the 'fix' to the module code...

Thanks for the link for overriding the theme function!

ekes’s picture

There is no base URL defined in the RSS spec. The spec only talks about absolute links, and never deals with relative ones. So while having correctly encoded relative html links in the description field is valid it means that probably a majority of readers don't try to guess the base URL and then resolve it.