diff --git a/app/views/shared/_social_share.html.erb b/app/views/shared/_social_share.html.erb index f2346c30c..d8c7b76a7 100644 --- a/app/views/shared/_social_share.html.erb +++ b/app/views/shared/_social_share.html.erb @@ -1,5 +1,8 @@ <% description = local_assigns.fetch(:description, '') %> <% description = truncate(ActionView::Base.full_sanitizer.sanitize(description), length: 140) %> +<% mobile = local_assigns[:mobile] %> +<% mobile_url = mobile.present? ? "#{mobile.gsub(/\s+/, '%20')}%20" : "" %> + <% if local_assigns[:share_title].present? %> @@ -11,7 +14,7 @@ desc: description, 'data-twitter-title': local_assigns[:mobile], 'data-telegram-title': local_assigns[:mobile])%> - <%= t("social.whatsapp") %>