We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WhatsApp does only show a preview image (taken from og:image meta tag) if the shared text actually starts with the URL. Hence, I propose to swap url and title at https://github.com/heiseonline/shariff/blob/develop/src/js/services/whatsapp.js#L67
og:image
Currently I apply an ugly workaround to do it afterwards like this:
if ($('li.shariff-button.whatsapp a').length > 0) { var shareStart = 'whatsapp://send?text='; var waBtn = $('li.shariff-button.whatsapp a').first(); var linkParts = waBtn.attr('href').split('%20http'); waBtn.attr('href', shareStart + 'http' + linkParts[1] + '%20' + linkParts[0].replace(shareStart, '')); }
As soon as this is included the image properly appears in WhatsApp.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
WhatsApp does only show a preview image (taken from
og:image
meta tag) if the shared text actually starts with the URL. Hence, I propose to swap url and title at https://github.com/heiseonline/shariff/blob/develop/src/js/services/whatsapp.js#L67Currently I apply an ugly workaround to do it afterwards like this:
As soon as this is included the image properly appears in WhatsApp.
The text was updated successfully, but these errors were encountered: