Magento2 Share product link for WhatsApp Web with bitly link
how to currentUrl share with bitly link?
$objectManagerInstance=\Magento\Framework\App\ObjectManager::getInstance();
$url = $objectManagerInstance -> get('Magento\Framework\UrlInterface');
$currentUrl = $url -> getCurrentUrl();
<div class="whatsapp_share <?php echo $size_class; ?>">
<a href="whatsapp://send?text=<?php echo $text?>%0A%0A<?php echo "",$currentUrl."";?>"><?php echo __('Share');?></a>
</div>