Adds correct url on budget investment twitter share

This commit is contained in:
decabeza
2018-03-07 00:55:23 +01:00
parent a92ef57bf8
commit 5b1ac0a6ce

View File

@@ -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>