Fix ampersand not being escaped in Twitter share from the hamburger menu (#3466)
This commit is contained in:
parent
0bbdb3cc21
commit
bbc83da539
1 changed files with 2 additions and 1 deletions
|
|
@ -59,7 +59,8 @@
|
|||
</div>
|
||||
<web-share-wrapper shareurl="https://dev.to<%= @article.path %>" sharetext="<%= @article.title %>" template="web-share-button">
|
||||
<div class="dropdown-link-row">
|
||||
<a 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 %>'>
|
||||
<a target="_blank"
|
||||
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 %>'>
|
||||
Share to Twitter
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue