replaces to %20 on whatsapp links href
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<h2><%= t("debates.show.share") %></h2>
|
||||
<div class="social-share-full">
|
||||
<%= social_share_button_tag("#{@debate.title} #{setting['twitter_hashtag']}") %>
|
||||
<a href="whatsapp://send?text=<%= @debate.title.gsub(/\s/, ' ') %> <%= debate_url(@debate) %>"
|
||||
<a href="whatsapp://send?text=<%= @debate.title.gsub(/\s/, '%20') %> <%= debate_url(@debate) %>"
|
||||
class="show-for-small-only" data-action="share/whatsapp/share">
|
||||
<span class="icon-whatsapp whatsapp"></span>
|
||||
<span class="sr-only"><%= t("social.whatsapp") %></span>
|
||||
|
||||
Reference in New Issue
Block a user