You are probably being clear enough for someone who knows more about it For me, you’d have to describe the steps you’ve taken, what happens and what you want to happen. But do you think this may be your answer?
Embedding on more than one page
In the above example we hard coded our http://example.com/blog/entry-123.html
URL when embedding the snippet of Javascript. This usually won’t be enough as many sites have many pages that are generated automatically. For example on a blog each entry typically gets its own page. To support this, put the same snippet on each page you want to display comments on, but replace the value passed to discourseEmbedUrl
with the current page’s URL. On my blog, I use the following value for discourseEmbedUrl
: 'http://eviltrout.com<%= current_page.url %>'
– as new blog pages are created, new topics will be created for them automatically on Discourse.