Link Previews Still Broken šŸ˜æ Upvote on Github!

This issues was brought up 2.5 years ago, and it seems like it is still happening. I was hopeful that the hard work to improve google search results would help this along but it seems it hasnā€™t.

As everyone who has been on the forum knows, when you post a link to a page on SuttaCentral.net in its own line in a forum post, it creates a generic looking link preview instead of a preview of the specific sutta being linked to. Like so:

https://suttacentral.net/mn21/en/sujato

I have tried posting the same link to another discourse based forum and I get identical results. I also found a testing website that looks for the tags that are used to create these previews (opengraph.xyz) For example, the link I shared above tests like this:

Does anyone know if this is something that can be fixed? Since it seems to be a problem on the coding side of SuttaCentral.net, I donā€™t think it is anything I can help with other than testing. Does anyone at the @helpdesk-dd know the status of this?

I realize that dev time is limited, but I think this fix could really improve the usability of the forum, not to mention that it improves the clickability of shared suttas on other platforms.

BTW, Pasting a link inside a paragraph like this, SuttaCentral, also doesnā€™t work as it should. Imagine how cool it would be if we could paste that link and it automatically said MN 21 KakacÅ«pamasutta.

EDIT: I found this help page on Discourse, link is to the troubleshooting section: Create rich link previews with Onebox - users - Discourse Meta

If Onebox is not working as expected, please check the following:

  • Test your site by pasting the link into iFramely ; check that the target is using correct OpenGraph or oEmbed meta tags for content. And remember the description text is required in Discourse!
  • Verify that the onebox request to the target website has not been blocked by user-agent. Some WordPress hosts frequently block ā€œunknownā€ user agents.

Testing using that site gives basically the same result.

EDIT2: Just found the link to the github for Onebox: GitHub - discourse/onebox: (DEPRECATED) A gem for turning URLs into website previews. If the problem canā€™t be solved on suttacentral.netā€™s side, perhaps something could be done to help Onebox pick up the data on the sc pages.

11 Likes

Please upvote or comment on these issues here:

And let us know if anything needs to be added. The spec is quite thin for the moment, so please just throw in a comment anything that might be useful, weā€™ll refine the spec before starting.

3 Likes

Thank you, Bhante. As far as what needs to be acomplished, it is really straightforward (says the person who doesnt really code!). The correct metadata just needs to end up in the og tags.

Iā€™ll try to add whatever I can to the issue.

Are you asking folks to vote so you know how important it is to people? Im affraid most people dont have a Github account.

2 Likes

Lol, one upvote and itā€™ll still be the most upvotes! You have the power! :fist:

2 Likes

Oh, that does deserve a sad kitty. :crying_cat_face::crying_cat_face::crying_cat_face:Itā€™s a stark reminder of how few people are carrying the coding burden of this great project.

If anyone does want to upvote, I think on Github they are called reactions. Unless Iā€™m missing something.

1 Like

It appears that now no link preview box is being created at all and just a link shows when one is pasted into a message:

https://suttacentral.net/mn87/en/sujato

This is what shows up in the preview:

At first I noticed it when pasting in the new format links that include display settings. But now it is happening on simple links too.

Is anyone else noticing this? Not sure if this is a @helpdesk-dd issue or not.

1 Like

Yes, Iā€™ve noticed that as well. Not sure what that issue is.

Weā€™ve looked into the social preview problem and the fix is not trivial (insert technobabble here). We may be dependent on upstream improvements before this can happen. Weā€™ve been looking at other things lately, but if there are any developers who want to take this on, let us know!

2 Likes

Hereā€™s the mechanism behind Oneboxing of links:

Discourse uses Open Graph/ oEmbed discovery mechanism to create a rich link.

Here are the Open Graph

and oEmbed tests

for

https://suttacentral.net/mn87/en/sujato

2 Likes

It seems likely that the meta data is not generated properly for all URIs? Were there any recent changes on the SuttaCentral side?

https://suttacentral.net
https://suttacentral.net
https://suttacentral.net/mn87

https://suttacentral.net/mn87/en
https://suttacentral.net/mn87/en
https://suttacentral.net/mn87/en/sujato
https://suttacentral.net/mn87/en/sujato

I just noticed that Google seems to be able to read the links now. What you are seeing is a link pasted into Google sheets:

image

And when I click yes, I get this:

image

Cool!

1 Like