From eae4d5a1427bae02b0dba041208bda39504f6739 Mon Sep 17 00:00:00 2001 From: Simounet Date: Thu, 25 May 2023 20:57:14 +0200 Subject: [PATCH] [Boyscout] Feed link HTML facto --- .../CoreBundle/Resources/views/Entry/_feed_link.html.twig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_feed_link.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/_feed_link.html.twig index 7e84da66d..b7962def8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/_feed_link.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/_feed_link.html.twig @@ -1,11 +1,12 @@ {% if tag is defined %} - rss_feed + {% set feed_route = 'tag_feed' %} + {% set slug = tag.slug %} {% elseif current_route in ['homepage', 'unread', 'starred', 'archive', 'all'] %} {% set feed_route = current_route %} {% if current_route == 'homepage' %} {% set feed_route = 'unread' %} {% endif %} {% set feed_route = feed_route ~ '_feed' %} - - rss_feed + {% set slug = null %} {% endif %} +rss_feed