# Inline oneboxing doesn't follow redirects

**URL:** https://meta.discourse.org/t/inline-oneboxing-doesnt-follow-redirects/194184
**Category:** Bug
**Created:** [June 17, 2021, 11:55am UTC](https://meta.discourse.org/t/inline-oneboxing-doesnt-follow-redirects/194184 "2021-06-17T11:55:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)
#### Post date: [June 17, 2021, 11:55am UTC](https://meta.discourse.org/t/inline-oneboxing-doesnt-follow-redirects/194184/1 "2021-06-17T11:55:40Z")

</div>

Oneboxing follows redirects and that seems to be the [wanted](https://meta.discourse.org/t/onebox-redirects-prevent-linking-to-login-only-content/93632/2) behavior and I think it’s useful for most cases.

However, I just noticed that the mini oneboxing doesn’t seem to follow redirects. I tried 301 and 302 and doesn’t seem to make a difference — only seems to work for 200 replies.

Not sure if this is intended?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 18, 2021, 4:50am UTC](https://meta.discourse.org/t/inline-oneboxing-doesnt-follow-redirects/194184/2 "2021-06-18T04:50:09Z")

</div>

Hmm, that is up to @sam, I think the mini oneboxer isn’t intended to be as thorough so I am not sure it should follow redirects, which is fairly complex.

---

<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: [June 21, 2021, 6:24am UTC](https://meta.discourse.org/t/inline-oneboxing-doesnt-follow-redirects/194184/3 "2021-06-21T06:24:02Z")

</div>

I think it is fair for it to follow redirects with our final destination library, it should plug in nicely.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [June 24, 2021, 4:38pm UTC](https://meta.discourse.org/t/inline-oneboxing-doesnt-follow-redirects/194184/5 "2021-06-24T16:38:24Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/0adeddde610ad503de16541c90f6deb4df2f4245](https://github.com/discourse/discourse/commit/0adeddde610ad503de16541c90f6deb4df2f4245)

Thanks for reporting this issue @mentalstring. :+1:

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [June 24, 2021, 4:38pm UTC](https://meta.discourse.org/t/inline-oneboxing-doesnt-follow-redirects/194184/6 "2021-06-24T16:38:33Z")

</div>


