Download & Extend

Relative URLs in Feeds and Feed Titles cause links to be broken

Project:FeedAPI
Version:6.x-1.8
Component:Code (general)
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Hello,

I need to subscribe to a particular feed that apparently has relative URLs. As a result Drupal displays the links to the articles as absolute paths with my sitename appended as the base, and the links are broken. I have searched the discussions and seen a few similar issues but no solutions. For instance the patch to Aggregator in http://drupal.org/node/395764 seems to be for D7 only. I also tried to patch common.inc from the ideas in http://drupal.org/node/88183 but in vain. Does anyone have an idea how/where I could tweak the code of FeedAPI to force all URLs to be absolute with the source URL of the feed as the base? Thanks

Comments

#1

I should add that I am getting the feed from http://www.aps.sn/aps.php?page=backend&id_secteur=28 in case someone wants to duplicate the symptom. Thank you

#2

Very same problem here.

Using Aquia Drupal 6.16
and Feed API 1.8

#3

Status:active» needs review

I assume you use the Parser Common Syndication.
Can you confirm if the attached patch helps?

AttachmentSize
792318_relative_urls_parser_cs.patch 1.16 KB
nobody click here