Commit 600e435c2149a4ee3ada7de477c3867dfe08e78b
1 parent
8d318563
Exists in
master
and in
6 other branches
Fix url in share buttons at program detail
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
index.html
... | ... | @@ -204,7 +204,7 @@ |
204 | 204 | <div class="col-sm-4 col-sm-offset-4"> |
205 | 205 | <div class="social right"> |
206 | 206 | <span>COMPARTILHE<br>ESTE PROGRAMA</span> |
207 | - {{#social_share title abstract '#'}}{{/social_share}} | |
207 | + {{{social_share title abstract (program_detail_url id)}}} | |
208 | 208 | </div> |
209 | 209 | </div> |
210 | 210 | </div> | ... | ... |
js/handlebars-helpers.js
... | ... | @@ -107,6 +107,10 @@ define(['handlebars'], function(Handlebars){ |
107 | 107 | return "#/programas/"+parent_id+"/propostas/"+id; |
108 | 108 | }); |
109 | 109 | |
110 | + Handlebars.registerHelper('program_detail_url', function(id) { | |
111 | + return "#/programas/"+id+"/sobre-o-programa"; | |
112 | + }); | |
113 | + | |
110 | 114 | Handlebars.registerHelper('encodeURI', function(uri) { |
111 | 115 | return encodeURIComponent(uri); |
112 | 116 | }); | ... | ... |