eBay Onebox support for alternative URL style

AI-generated summary

In a discussion titled ‘eBay Onebox support for alternative URL style’, DeanMarkTaylor requests support for oneboxing an alternative eBay link format (pages.ebay.com/link) that currently fails to display a preview, unlike the standard itm URL. codinghorror suggests the issue likely stems from OpenGraph or oEmbed metadata rather than Discourse itself. Upon testing, DeanMarkTaylor confirmed the alternative URL returns generic site metadata, with the actual product details loaded via JavaScript. codinghorror provided debug links to compare the two URL types. When DeanMarkTaylor clarified they are seeking a transformation rule to convert the non-working URL into a working one, codinghorror expressed hesitation about adding custom oneboxing for eBay, questioning its centrality to the web and suggesting a community Pull Request as a potential solution.

With people searching already for ideas for Mothers Day…
… they are leaning on eBay for great ideas.

One of several that didn’t onebox correctly was this one:

http://pages.ebay.com/link/?nav=item.view&id=272213415925&alt=web
http://pages.ebay.com/link/?nav=item.view&id=272213415925&alt=web

http://www.ebay.com/itm/272213415925
http://www.ebay.com/itm/272213415925

Now you can see the top link is not “oneboxing” as expected and that the 2nd link is for the same product in an alternative style link.

Could support be added for this alternative link style?

1 « J'aime »

Pretty sure this is opengraph or oembed, and thus has little do do with us… did you test it in the testing tool?

Nope - but have now, it contains:

{
    "site_name": "eBay",
    "title": "eBay",
    "image": "http://pics.ebaystatic.com/aw/pics/logos/logo_ret.png"
}

The redirection to the final page occurs in JavaScript.

Compare

http://pages.ebay.com/link/?nav=item.view&id=272213415925&alt=web

and

http://www.ebay.com/itm/272213415925

Yes, my request is support for onebox transforming the known URL that doesn’t work into one that does.

I just don’t know that I consider eBay so central to the web these days that it justifies custom oneboxing.

Perhaps a community PR