# Incorrect or failing oneboxes for links to other discourse instances

**URL:** <https://meta.discourse.org/t/incorrect-or-failing-oneboxes-for-links-to-other-discourse-instances/67351>\
**Category:** Bug\
**Created:** [02.Август.2017 22:23:55 UTC](https://meta.discourse.org/t/incorrect-or-failing-oneboxes-for-links-to-other-discourse-instances/67351 "2017-08-02T22:23:55Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [11.Август.2017 16:29:06 UTC](https://meta.discourse.org/t/incorrect-or-failing-oneboxes-for-links-to-other-discourse-instances/67351/16 "2017-08-11T16:29:06Z")

</div>

> WhitelistedGenericOnebox.probable\_discourse(URI(url))

I am not a huge fan of this, what I would recommend is adding some sort of custom open graph tag that tells us not to follow canonical. That way any site owner can opt for this behavior not only Discourse instances. Hitting the URL with a regex is fragile and will eventually break, I can guarantee that 100%

> <https://github.com/discourse/onebox/blob/a45bfa115c9656d63240492f44b13a8f75a51785/lib/onebox/engine/whitelisted_generic_onebox.rb#L171-L173>

---

_[View the full topic](https://meta.discourse.org/t/incorrect-or-failing-oneboxes-for-links-to-other-discourse-instances/67351)._
