diff --git a/src/templates/nodes/custom/comment/list_embed.pug b/src/templates/nodes/custom/comment/list_embed.pug index 3050240c..58da1b6a 100644 --- a/src/templates/nodes/custom/comment/list_embed.pug +++ b/src/templates/nodes/custom/comment/list_embed.pug @@ -100,8 +100,12 @@ script. }); {% if show_comments %} - $('body').on('pillar:comment-posted', function(e, comment_node_id) { + $('body') + .off('pillar:comment-posted') + .on('pillar:comment-posted', function(e, comment_node_id) { + var commentsUrl = "{{ url_for('nodes.comments_for_node', node_id=node_id) }}"; + loadComments(commentsUrl) .done(function() { $('#' + comment_node_id).scrollHere();