Duplicate Content

Covered here: Embedding Discourse Comments via Javascript


Maybe one year later: is there any other solution for the duplicate content issue?

Like add a canonical url in the discourse forum post or no-index the forum post.


Maybe 9 months later: this is something that keeps coming up with us too. We started posting only the excerpt to Discourse, but our members don’t like to be bounced back to the site to read the full article.

1 Like

Well, you can’t have it both ways, so I’m not sure what you’re proposing here.

1 Like

My proposal would be to offer some flexibility, so there is a choice of what type of community to make without getting dinged by Google for duplicate content:

  • Give members of a blog that uses Discourse the full privilege of reading and responding to an article on Discourse.
  • Make Discourse the ‘clubhouse’ that only shows an excerpt of the article. This does not require a canonical url set to the blogpost.

The first option would require a canonical url pointing to the blogpost that is not on Discourse. The easiest way to offer this flexibility imho is an option to set the canonical url for a topic.

Yes, this is a thing. Google don’t like duplicate copies of articles.

Your options here seem pretty simple:

  • post excerpts
  • post full articles to categories which aren’t visible to anonymous (you could substitute everyone with TL0)
  • post dupes and get dinged


1 Like

An embed set canonical url site setting was recently added to Discourse. When this setting is enabled, the canonical URL for topics that have an embed URL will be set to the topic’s embed URL. For sites using the WP Discourse plugin, enabling this setting will cause the canonical URL of any posts published from WordPress to be set to the WordPress post’s URL.


This turned out to work great. It was just not obvious to me how to create a topic with a canonical URL. After some experimentation I found out you have to enter the original URL as topic title.


@simon What exactly is an “embed URL”? I’ve also seen the term “embedded topics”. I’m just not sure what these mean.

The embed url is an attribute that can be associated with a topic. The WP Discourse plugin sets the embed url to the permalink of the WP post. So if you use the site setting embed set canonical url the WP post permalink will be the canonical url of the discourse topic (i.e. it will appear in the head as the cannonical link).

1 Like

Thank you. Is the embed url attribute only settable the API?

Yes, you can only set it via the API. It’s used by various features that involve the importation of content from a 3rd party service.

1 Like

closed off or deleted? Does embed set canonical url completely solve dup content SEO issue?

Yes it does if used correctly. Please review the above, in particular Simon’s post, and let us know if you have any specific questions or issues.

1 Like

My use case would be to create discussions in Discourse automatically from wordpress using the Discourse WordPress plugin with the
embed set canonical url option enabled.

Once I connect WordPress to discouse and the new topics are created automatically, is there anything else I have to do besides enable that embed set canonical url option?

Yup, that’s all you need to do.

1 Like

Prefect! Thanks for confirming. I will setup after a bit more research on any impact on seo for blog articles.t

Ok I got that working.

Now, if I enable the “Use Full Post Content” setting, will that get rid of the canonical links?

No, it just sends all of the post HTML instead of an excerpt. It has no effect on the canonical link.

1 Like