# Add option to set canonical\_url to embed\_url

**URL:** <https://meta.discourse.org/t/add-option-to-set-canonical-url-to-embed-url/103915>\
**Category:** Feature\
**Created:** [10.Декабрь.2018 16:14:08 UTC](https://meta.discourse.org/t/add-option-to-set-canonical-url-to-embed-url/103915 "2018-12-10T16:14:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [10.Декабрь.2018 16:14:08 UTC](https://meta.discourse.org/t/add-option-to-set-canonical-url-to-embed-url/103915/1 "2018-12-10T16:14:08Z")

</div>

From time to time we get requests to set the `canonical` URL of embedded topics to the URL of the blog post. I’ve created a [pull request](https://github.com/discourse/discourse/pull/6741) that does exactly that. It _unconditionally_ uses the URL of the original blog post (`embed_url`) as `canonical` for the topic.

There have been various previous discussions like [Google indexed link not pointing to the correct post](https://meta.discourse.org/t/google-indexed-link-not-pointing-to-the-correct-post/61443) and [Duplicate Content](https://meta.discourse.org/t/duplicate-content/91745) in the past.

After reading those posts I’m not so sure about my solution anymore, so I’d like to get some feedback from you.

- Should this be a configurable? Is there a good reason for keeping the current behavior of always using the topic’s URL as canonical?

- Should the blog post’s URL only be used as canonical for N pages presented to the search bot? After all, only a certain amount of posts is embedded in the blog post. (N probably should be 1)

I’d appreciate your feedback on this. I’m sure there are lots of different use cases out there and I’d like to make an informed decision before I change anything that could affect search engines.

---

_[View the full topic](https://meta.discourse.org/t/add-option-to-set-canonical-url-to-embed-url/103915)._
