From 10bc756932d9e962266d4f103d99b10a7431822b Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Tue, 15 Aug 2017 14:41:34 -0400 Subject: [PATCH] URL Encode Title and Page URL in Social Share Links The links to the various social networks include data from the post (title and url) which can contain URL special characters. Pass each of the generated URLs through Liquid's `url_encode` filter to build HTML complaint URLs. --- _includes/social-share.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/social-share.html b/_includes/social-share.html index dbf769ef..71bc306a 100644 --- a/_includes/social-share.html +++ b/_includes/social-share.html @@ -3,11 +3,11 @@

{{ site.data.ui-text[site.locale].share_on_label | default: "Share on" }}

{% endif %} - Twitter + Twitter - Facebook + Facebook - Google+ + Google+ - LinkedIn + LinkedIn