Adds correct url on budget investment twitter share
This commit is contained in:
@@ -40,7 +40,8 @@
|
||||
|
||||
<% if user_voted_for && setting['twitter_handle'] %>
|
||||
<div class="share-supported">
|
||||
<%= social_share_button_tag("#{investment.title} #{setting['twitter_hashtag']}", url: budget_investment_url(budget_id: investment.budget_id, id: investment.id), via: setting['twitter_handle']) %>
|
||||
<%= social_share_button_tag("#{investment.title} #{setting['twitter_hashtag']}",
|
||||
url: budget_investment_url(investment.budget, investment), via: setting['twitter_handle']) %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user