If you write a blog post or whatever kind of post that has a corresponding feed on drupal, and you use a local url, for example <a href="/files/example1.mp3">and then you view this post in Bloglines or FeedBurner, it prepends bloglines domain or feedburner domain onto the url instead of the originating domain. Other readers treat local urls differently and prepend the originating domain, like desktop reader FeedDemon prepends the feed's url, so if the feed url is http://www.developmentseed.org/blog/taxonomy/term/119/0/feed it will make the link to the local file http://www.developmentseed.org/blog/taxonomy/term/119/0/feed/files/examp... where the link should be http://www.developmentseed.org/blog/files/example1.mp3.

Is there a way to fix this in the aggregator to handle each situation? Has anyone else seen this? I looked for an existing issue but saw none, though this seems like a big problem esp. for podcasting. I also tried it out on 4.7 cvs as of Oct. 15.

Ian

Comments

beginner’s picture

Nice web site!

Anyway, I confirm the issue (I think we're speaking of the same):
I syndicate www.reuniting.info here:
http://www.masquilier.org/aggregator/sources/2 .
if you look at the August 15, 2005 feed item, there is a local (from the perspective of reuniting.info) link to resources/questions_and_answers .
Of course, it should really be http://www.reuniting.info/resources/questions_and_answers but what we get within the aggregator feed page is : http://www.masquilier.org/ resources/questions_and_answers which gives plenty of "warning: file not found" in the logs.

So, the aggregator module should parse the html, find the base url within the headers of the site, and then add it to the quoted text as appropriate.

Unfortunatly, this parsing stuff is much beyond my abilities for now...

kbahey’s picture

This issue http://drupal.org/node/13148 fixes this problem. There is a patch for it.

I will keep this one open though, since it is feed specific. If the other one gets commited, then we can close this one.

beginner’s picture

Hmm... It seems I'm not speaking about the same thing, after all. Note that in my example, the feed is from another site.

Could someone whose blog in another site gets listed here http://drupal.org/aggregator make a test, and create a blog where there would be a relative link to that blog's site. We'll see what happens when the beginning of the blog is displayed at drupal.org...

magico’s picture

@kbahey: what should we do about this? The other issue you refered to was already closed, but I could not find what was opened instead.

lilou’s picture

Version: x.y.z » 7.x-dev
alex_b’s picture

Component: aggregator.module » node.module

There is a patch for fixing broken relative URLs on aggregation (on the way into Drupal) here #395764: Aggregator: Convert all relative URLs to absolute URLs in feed items .

Is this still a problem on the way out (feed generation)? Moving to node module.

jody lynn’s picture

Yes, I confirmed it's still an issue in /rss.xml.

aspilicious’s picture

Version: 7.x-dev » 8.x-dev

Needs to be checked in D8

xjm’s picture

Component: node.module » node system
Issue summary: View changes

(Merging "node system" and "node.module" components for 8.x; disregard.)

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pameeela’s picture

Issue summary: View changes
Status: Active » Closed (outdated)
Issue tags: +Bug Smash Initiative
StatusFileSize
new101.62 KB
new90.74 KB

I can confirm this no longer occurs, see test content with a relative link, which gets the domain added in rss.xml: