Bug 365785 - Support relative links
Summary: Support relative links
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-17 16:33 UTC by houz
Modified: 2019-03-31 11:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description houz 2016-07-17 16:33:57 UTC
Would it be possible to support relative links in RSS posts? Using the host the feed was fetched from might be a good idea. Currently those links are turned to 'file://', i.e., local filesystem links which is probably not the right thing in most cases.
Comment 1 Laurent Montel 2016-07-17 18:48:38 UTC
Could explain me it more this bug please ?
Example ?
feed url etc.

Thanks
Comment 2 houz 2016-07-17 20:13:20 UTC
For example the feed at https://blog.fefe.de/rss.xml?html has one entry like this:

<item>
<title>Theresa May schließt erstmal die Behörde, die für ...</title>
<link>https://blog.fefe.de/?ts=a97479f6</link>
<guid>https://blog.fefe.de/?ts=a97479f6</guid>
<description>
<![CDATA[<a href="http://www.independent.co.uk/environment/climate-change-department-killed-off-by-theresa-may-in-plain-stupid-and-deeply-worrying-move-a7137166.html">Theresa May schließt erstmal die Behörde, die für die Abwehr des Klimawandels zuständig ist</a>. Bisher gab es dafür das "Department for Energy and Climate Change" (und da gehört das ja auch hin, erneuerbare Energiequellen und so weiter). Jetzt kümmert sich darum, das "Department for Business, Energy &amp; Industrial Strategy". Das Business in dem Namen lässt nicht viel Gutes vermuten.<p>Für Kontext <a href="/?ts=a998af0c">siehe auch</a>.]]></description>
</item>

As you can see, there is a link with the URL "/?ts=a998af0c". That link results in "file:///?ts=a998af0c" when i click it in Akregator. I would agree that relative URLs in a RSS feed are a little strange at best, but if there is a better way than assuming local file system locations it might improve the real world experience of users.
Comment 3 Laurent Montel 2016-07-18 04:21:12 UTC
Ok I can reproduce the bug.
Thanks
Comment 4 Pierre Ducroquet 2019-03-31 11:18:59 UTC
Fixed with commit https://cgit.kde.org/akregator.git/commit/?id=fbd04c0045a5ca3695200d5d50e6920a90b13759
Thanks for reporting it.