# Почему ссылка на Instagram отображается в однобоком виде?

**URL:** <https://meta.discourse.org/t/why-instagram-link-onebox-like-this/138047>\
**Category:** Bug\
**Created:** [08.Январь.2020 11:42:12 UTC](https://meta.discourse.org/t/why-instagram-link-onebox-like-this/138047 "2020-01-08T11:42:12Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Hector](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@Hector](https://meta.discourse.org/u/Hector)\
**Post date:** [10.Январь.2020 13:22:49 UTC](https://meta.discourse.org/t/why-instagram-link-onebox-like-this/138047/6 "2020-01-10T13:22:49Z")

</div>

Похоже, что у некоторых страниц Instagram есть каноническая ссылка с другим URL, требующим авторизации. Код в библиотеке onebox предпочитает канонический URL.

> <https://github.com/discourse/onebox/blob/main/lib/onebox/helpers.rb#L25-L40>

Например, вот канонические URL инстаграм-страниц в этой теме:

https://www.instagram.com/shaparakgroup.ir/p/B3jG277hve9/caption/backhand\_index\_pointing\_right-chp-shprkh-ok\_hand-black\_small\_square-khrt-wyzyt-hy-brsh-khs

https://www.instagram.com/dogsofinstagram/p/B6gUJwDl-lQ/caption/happy-holidays-writes-konaandcamper-misslolathegoldendoodle-camera\_with\_flash-by-sh

---

_[View the full topic](https://meta.discourse.org/t/why-instagram-link-onebox-like-this/138047)._
