use the url of the feed as the base url to resolve relative entry links when the declared link in the feed is relative

This commit is contained in:
Athou
2013-10-03 12:42:05 +02:00
parent b615847b09
commit 57abee6cf0
3 changed files with 46 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ public class FeedParser {
continue;
}
entry.setGuid(FeedUtils.truncate(guid, 2048));
entry.setUrl(FeedUtils.truncate(FeedUtils.toAbsoluteUrl(item.getLink(), feed.getLink()), 2048));
entry.setUrl(FeedUtils.truncate(FeedUtils.toAbsoluteUrl(item.getLink(), feed.getLink(), feed.getUrlAfterRedirect()), 2048));
entry.setUpdated(validateDate(getEntryUpdateDate(item), true));
FeedEntryContent content = new FeedEntryContent();