# Mini oneboxing doesn't preview for encoding slug generation method

**URL:** <https://meta.discourse.org/t/mini-oneboxing-doesnt-preview-for-encoding-slug-generation-method/73007>\
**Category:** Bug\
**Created:** [October 29, 2017, 2:48pm UTC](https://meta.discourse.org/t/mini-oneboxing-doesnt-preview-for-encoding-slug-generation-method/73007 "2017-10-29T14:48:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**Post date:** [October 29, 2017, 2:48pm UTC](https://meta.discourse.org/t/mini-oneboxing-doesnt-preview-for-encoding-slug-generation-method/73007/1 "2017-10-29T14:48:29Z")

</div>

when slug generation method is on encoded, the mini oneboxing preview is not shown correctly:

![image](https://global.discourse-cdn.com/meta/original/3X/2/2/22d34f0154ccde02eb9d59a457ad7bf65e7a2e0b.png)

* * *

This is a topic with encoded slug generation, [https://padpors.com/t/تربیت-گذشته-و-حال-من-درباره-غذای-باقیمونده-در-سفره/2514](https://padpors.com/t/%D8%AA%D8%B1%D8%A8%DB%8C%D8%AA-%DA%AF%D8%B0%D8%B4%D8%AA%D9%87-%D9%88-%D8%AD%D8%A7%D9%84-%D9%85%D9%86-%D8%AF%D8%B1%D8%A8%D8%A7%D8%B1%D9%87-%D8%BA%D8%B0%D8%A7%DB%8C-%D8%A8%D8%A7%D9%82%DB%8C%D9%85%D9%88%D9%86%D8%AF%D9%87-%D8%AF%D8%B1-%D8%B3%D9%81%D8%B1%D9%87/2514)

this is the same topic after I changed the slug generation to ascii: [https://padpors.com/t/topic/2514](https://padpors.com/t/topic/2514)

should it be like this? as one may think it is not working.

---

<div class="post-metadata">

**Author:** ![youwiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/youwiki/32/89936_2.png) [@youwiki](https://meta.discourse.org/u/youwiki)\
**Post date:** [October 29, 2017, 3:21pm UTC](https://meta.discourse.org/t/mini-oneboxing-doesnt-preview-for-encoding-slug-generation-method/73007/2 "2017-10-29T15:21:05Z")

</div>

It seems that `Excon.public_send(@http_verb, ...)` return 404.  
Oneboxing, for example, this file: [https://www.nalog.ru/html/sites/www.new.nalog.ru/docs/instruction\_installation.pdf](https://www.nalog.ru/html/sites/www.new.nalog.ru/docs/instruction_installation.pdf) also don’t work.  
May be some request headers wrong, or some additional properties need to set for Excon?

---

<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:** [October 29, 2017, 8:49pm UTC](https://meta.discourse.org/t/mini-oneboxing-doesnt-preview-for-encoding-slug-generation-method/73007/3 "2017-10-29T20:49:16Z")

</div>

What do you think here @sam?

---

<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:** [October 29, 2017, 9:46pm UTC](https://meta.discourse.org/t/mini-oneboxing-doesnt-preview-for-encoding-slug-generation-method/73007/4 "2017-10-29T21:46:00Z")

</div>

I think its a bug, we should fix it.
