We have the following situation. We want to add LinkedIn, Facebook and Twitter share buttons to for instance a blog or a page. When a visitor is clicking on that share button, he/she can share that blog via social media. The thing is. When URLs are long with parameters, then LI, FB and Twitter will cut the URL in the preview/text editor and the wrong URL would be shared.
So, is it possible to make use of an URL shortener with code in HubL or do you have other suggestions?
But the URLs are in some cases to long and are trimmed by LinkedIn, Facebook... So I am wondering if you can use code or other options to generate a shorter URL via some HubL code?
Hi @Klaasie, Never really encountered such problems with the default social network sharing links. Might be an "URL structure" issue instead of the length.