<h2>Share this petition</h2>
<ul class="petition-share">
  <li>
    <%= share_via_facebook(petition, rel: 'external') %>
  </li>
  <li>
    <%= share_via_email(petition, rel: 'external') %>
  </li>
  <li>
    <%= share_via_twitter(petition, rel: 'external') %>
  </li>
  <li class="petition-share-whatsapp">
    <%= share_via_whatsapp(petition, rel: 'external') %>
  </li>
</ul>

<h2>Share this petition</h2>
<ul class="petition-share">
  <li>
    <%= share_via_facebook(petition, rel: 'external', target: '_blank') %>
  </li>
  <li>
    <%= share_via_email(petition, rel: 'external', target: '_blank') %>
  </li>
  <li>
    <%= share_via_twitter(petition, rel: 'external', target: '_blank') %>
  </li>
  <li class="petition-share-whatsapp">
    <%= share_via_whatsapp(petition, rel: 'external', target: '_blank') %>
  </li>
</ul>

Make sharing links open in a new tab
Make sharing links open in a new tab
