Comment intégrer les commentaires Discourse en HTML (pas iframe) avec une URL canonique ?

Hello dear forum members,

I have a product review website and an active Discourse forum connected to it.

My Goal: I want to fetch and display the comments (user inputs) from the corresponding topic on my Discourse forum underneath each product page on my review site.

Current Situation & Undesired Method: I am aware of Discourse’s feature to embed topics using an iframe. However, I believe that content fetched via an iframe will not be recognized by search engines as part of my main site (the product review site) and, therefore, will not provide a direct SEO benefit .

My Ideal Scenario:

  1. When I publish a product page on my review site , a topic (thread) for this product should be automatically created on my Discourse forum.

  2. The canonical tag of this new topic on the forum should point to the URL of the original product page on my review site. (This is to prevent duplicate content issues).

  3. To be able to display the comments (posts) from this forum topic on my product review site using an SEO-friendly method other than an iframe (like rendering the content directly into the page’s HTML).

Why I Want This Method:

  1. To grow the community by directing users from my review site to the forum to make comments.

  2. To enrich my review pages with valuable, unique user content (UGC) for SEO purposes, by displaying these forum comments as HTML on my site.

My Questions: What is the best way to set up this structure?

  • How can I programmatically create a new topic and set its canonical URL?

  • What is the best technical approach (using API, Webhooks, etc.) to integrate these forum comments (posts) directly into my site’s HTML, without using an iframe?

  • Is there a known plugin or a “best practice” to achieve this automation (creating a new topic when a new product is published)?

    Thank you in advance for your help and guidance.