From 5fcf24646ed23f53595e3b97475ff8010f75f28b Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Dec 2021 23:28:46 +0100 Subject: [PATCH] Open share widgets in new tab --- app/views/answerbox/_actions.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/answerbox/_actions.haml b/app/views/answerbox/_actions.haml index e7a0c58a..ed9b053f 100644 --- a/app/views/answerbox/_actions.haml +++ b/app/views/answerbox/_actions.haml @@ -20,10 +20,10 @@ %button.btn.btn-link.answerbox__action{ data: { toggle: :dropdown }, aria: { expanded: false } } %i.fa.fa-fw.fa-share-alt{ title: 'Share' } .dropdown-menu.dropdown-menu-right{ role: :menu } - %a.dropdown-item{ href: twitter_share_url(a) } + %a.dropdown-item{ href: twitter_share_url(a), target: '_blank' } %i.fa.fa-fw.fa-twitter Share on Twitter - %a.dropdown-item{ href: tumblr_share_url(a) } + %a.dropdown-item{ href: tumblr_share_url(a), target: '_blank' } %i.fa.fa-fw.fa-tumblr Share on Tumblr %a.dropdown-item{ href: '#', name: 'ab-share' }