From 23de68769651623787650b019073eedd6608cc44 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Thu, 8 Jul 2021 22:36:50 +0200 Subject: [PATCH] Make RSS feed entry links valid and accessible According to the ATOM spec link elements must have a href: https://validator.w3.org/feed/docs/atom.html Also most feed readers (TinyTiny, Feedly, Thunderbird) prefer link elements in this order: - plain - with attribute rel=alternate - with attribute rel=via As the content is work of the entry author, link to it by default. Not to the wallabag instance entry. This also makes it possible to share links with people who don't have access to the wallabag instance via the RSS feed. --- .../Resources/views/themes/common/Entry/entries.xml.twig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig index cf6f65717..ee6ff6397 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig @@ -31,9 +31,11 @@ {% for entry in entries %} <![CDATA[{{ entry.title|e }}]]> + - {{ entry.url }} + wallabag:{{ domainName | removeScheme | removeWww }}:{{ user }}:entry:{{ entry.id }} {{ entry.updatedAt|date('c') }} {{ entry.createdAt|date('c') }}