But upon saving my edit, well… “Hey, bogus, man.”
That sharp looking link preview you see in the right half of the screen
was no more! We’re talking “bait and switch.”
Apparently a post can only have one big link preview. Fair enough.
But then the right side of the screen should not get the
user all excited about something that is not about to happen.
So, please show the second etc. link previews the same way they will look when the edit is saved.
OK, you are probably only rendering part of the page so have lost track of which link preview this is, (first or not first)… but that’s bad.
I’m not sure if this fits into this topic, since this seems more like a feature request, but I like the idea that when a onebox fails because some tags are missing, the link is shown as an inline onebox instead of the raw link.
The other thing that can cause this is if the browser is able to read the url (maybe you’re logged in there) but discourse is denied access. Discourse can also get rate limited. Since the preview is rendered by the browser and the post gets rendered by discourse there isn’t much way to avoid this.
From my understanding, the count of links isn’t at play here, it’s just the pseudo-onebox that’s causing confusion about the oneboxed state of a link. (But also yes, there’s only one link that we can see)
I will try to summarize what I understood @jidanni posted at a Discourse forum. This post, which he shared a link to, contains two links. But the onebox only works for the first one. The second one shows in the preview of the composer that no preview could be generated.
Now I get it. So first we have to go and see what happened, then come back and re-read the question.
But the question is why a link stays as literal link, not change it automatic to formatted link when oneboxing fails. And in some cases user doesn’t know what format is in use.
I would say the title of this topic would need some love and caretaking
Indeed, hopefully @jidanni agrees that the problem is not link count but onebox failure, which can happen for any link. Almost always because of the target site’s setup, in my experience.
I’m very thankful that everybody’s hot on the case.
Maybe some supervisor could edit the title, as all these concepts are over my head.
All I know is sometimes things look different in the side by side preview, than when the post is completed.