Read More links in RSS display relative paths

nikitac - March 17, 2009 - 08:05
Project:Read More link (Drupal 6 and earlier)
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Todd Nienkerk
Status:won't fix
Description

It works fine until we used Feedburner email subscription service, in the rss email, read more link only shows half of the permalink, not the whole link i.e. (www.example.com/postlink) but (postlink) only. Would you please let us know how to fix it? Thanks in advance.

#1

gorlov - March 20, 2009 - 18:46

Discovered the same problem, with only relative links in RSS links that break once in Feedburner feeds.
This was first identified in http://drupal.org/node/294744, then fixed as described in http://drupal.org/node/294846, but then "re-broken" in 6.x-3.0 release.

#2

Todd Nienkerk - April 10, 2009 - 00:55
Title:Read more link in rss» Read More links in RSS display relative paths
Version:6.x-3.0» 6.x-3.x-dev
Category:support request» bug report
Assigned to:Anonymous» Todd Nienkerk

The RSS feeds need to be fixed to use absolute paths.

#3

Todd Nienkerk - April 12, 2009 - 17:17

Please try the latest 6.x-3.x-dev release. I'm pretty sure this is already fixed.

#4

gorlov - April 12, 2009 - 14:20

I am 6.x-3.x-dev (the latest as of March 24, 2009). As a result, I had to disable ed_readmore from the two sites on which I had it installed. The Feedburner feed, and the emailed newsletters, had the readmore links as relative links, so they would point to feedburner.com/drupalsite_relative_link.

#5

Todd Nienkerk - April 12, 2009 - 18:47
Status:active» won't fix

I discovered a fundamental limitation of the node system that prevents a clean separation between a normal teaser and an RSS item. The $op (operations) path progresses like this: (1) load > (2) view > (3) alter > (4) rss item. Because "rss item" occurs after "view," the link has already been added to the node object.

To bypass this entirely, I am switching from the hook_nodeapi() to template_preprocess_node() method of appending the link to the end of the node teaser.

This means that the "read more" link will not be able to add a link to RSS items But that's okay -- Drupal already adds a "read more" link in node.module (see node_feed()). Unfortunately, Drupal's default "read more" link cannot be themed or altered.

I have filed a feature request for Drupal 7 to expose the default "read more" link in RSS items to alteration: #431660: Expose "read more" link in RSS feeds to a configuration UI or preprocess function.

Because the Read More module cannot completely tap into the RSS item's "read more" link, I am marking this "won't fix." I will commit my changes regarding the hook_nodeapi() to template_preprocess_node() switch in a few minutes.

 
 

Drupal is a registered trademark of Dries Buytaert.