summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2024-02-02 06:53:55 +0300
committerAndrew Dolgov <[email protected]>2024-02-02 06:53:55 +0300
commita5b19e5ff5efd9425192fe8d7ca9c7d3c08182ed (patch)
treeb95b982eb9000060ce8e24729f9cd7a2f8d4e45d
parenta56e935deb9dcc9287117fba9208f7a25d4c81e5 (diff)
make headline elements with feed title lead to originating site while RSS icon elements lead to the feed within tt-rss UI
-rwxr-xr-xjs/Headlines.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index a7e0f897a..d24205932 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -470,7 +470,7 @@ const Headlines = {
const vgrhdr = `<div data-feed-id='${hl.feed_id}' class='feed-title'>
<div class="pull-right icon-feed" title="${App.escapeHtml(hl.feed_title)}"
onclick="Feeds.open({feed:${hl.feed_id}})">${Feeds.renderIcon(hl.feed_id, hl.has_icon)}</div>
- <a class="title" href="#" onclick="Feeds.open({feed:${hl.feed_id}})">${hl.feed_title}</a>
+ <a class="title" target="_blank" rel="noopener noreferrer" href="${App.escapeHtml(hl.site_url)}">${hl.feed_title}</a>
<a class="catchup" title="${__('mark feed as read')}" onclick="Feeds.catchupFeedInGroup(${hl.feed_id})" href="#">
<i class="icon-done material-icons">done_all</i>
</a>
@@ -518,8 +518,8 @@ const Headlines = {
${hl.cdm_excerpt ? hl.cdm_excerpt : ""}
</span>
- <a href="#" class="feed vfeedMenuAttach" style="background-color: ${hl.feed_bg_color}" data-feed-id="${hl.feed_id}"
- onclick="Feeds.open({feed:${hl.feed_id}})">${hl.feed_title}</a>
+ <a class="feed vfeedMenuAttach" style="background-color: ${hl.feed_bg_color}" data-feed-id="${hl.feed_id}"
+ target="_blank" rel="noopener noreferrer" href="${App.escapeHtml(hl.site_url)}">${hl.feed_title}</a>
<span class="updated" title="${hl.imported}">${hl.updated}</span>