Mini oneboxing doesn't preview for encoding slug generation method

AI-generated summary

The Mini oneboxing preview is not working correctly when the slug generation method is set to Encoded. Pad_Pors provided an example of a topic with an encoded slug, which failed to preview, but worked correctly when the slug was changed to ASCII. youwiki noted that the Excon.public_send(@http_verb, ...) method returns a 404 error, suggesting a possible issue with request headers or properties. sam agrees that this is likely a bug and recommends fixing it.

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

image


This is a topic with encoded slug generation, https://padpors.com/t/تربیت-گذشته-و-حال-من-درباره-غذای-باقیمونده-در-سفره/2514

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

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

2개의 좋아요

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 also don’t work.
May be some request headers wrong, or some additional properties need to set for Excon?

What do you think here @sam?

I think its a bug, we should fix it.

4개의 좋아요