Onebox preview is same for all pages on subdomain

I’ve noticed that Discourse displays the same Onebox preview for all pages on a certain subdomain, despite og:title and og:description being different for the different pages.

I’ve checked via iFramely as indicated in Rich link previews with Onebox and also couldn’t spot anything via opengraph.xyz.

It would be great to get it working reliably as those links are mainly posted in a Discourse forum.

Here are three examples:

2 Likes

I’ve experimented with GitHub - discourse/onebox: A gem for turning URLs into website previews on the rails console and identified a problem with rel-canonical on my site.

It’s now fixed and Onebox displays the correct preview, proof:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.