Setting canonical URL when posting/cross-posting

I have a personal blog, which sometimes have articles that fits another public discourse forum in my language.

Is there a way to specify the canonical URL when posting to discourse?, to avoid showing duplicate content to search engines.
It’s a static blog, so no plugin exists, and not all posts fit the topic of the discourse forum.

It would be great if there is a way to specify the Canonical URL when posting.
I read its possible through the API, I can request an API key from the admins, but what’s the command that I should use to post my topic?

Have a look at Embed Discourse comments on another website via Javascript. I think that will insert the post automatically on discourse and handle the canonical bit.

But I don’t want to use Discourse comments on my website, I just want to cross post with canonical URL set to the origin.

1 Like

That’s my best idea. You might let it embed the comments and then hide them with CSS. That’s the only way that I can think of.( Though you might see what happens if you paste the blog url into the title?)

Nothing happens, its just normal title text