Url encode article's title for Twitter sharing (#1092)
This commit is contained in:
parent
9340b47d33
commit
72ce2f0e6d
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
</button>
|
||||
<a class="article-actions-tweet-button"
|
||||
target='_blank'
|
||||
href='https://twitter.com/intent/tweet?text="<%= @article.title %>" by <%= @article.user.twitter_username ? "@" + @article.user.twitter_username : @article.user.name %> %23DEVcommunity https://dev.to<%= @article.path %>'>
|
||||
href='https://twitter.com/intent/tweet?text="<%=u @article.title.strip %>" by <%= @article.user.twitter_username ? "@" + @article.user.twitter_username : @article.user.name %> %23DEVcommunity https://dev.to<%= @article.path %>'>
|
||||
<img src="<%= asset_path("twitter.svg") %>" />
|
||||
</a>
|
||||
<a class="article-actions-comments-count" href="#comments" id="jump-to-comments">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue