In a bug report regarding broken Wikipedia oneboxes with umlauts, terraboss noted that while links with special characters (e.g., Röntgenstrahlung) initially display a preview, the onebox disappears upon adding new lines or spaces. Additionally, unlike the Meta instance where the onebox appears correctly after posting, their local installation fails to render it post-submission. elberet explained that oneboxes are processed asynchronously via a background job, which could cause preview discrepancies, but terraboss clarified the issue is specific to their Discourse v1.3.0.beta4+85 installation, as no errors appear in logs. After terraboss provided screenshots showing the preview disappearing and the final post lacking the onebox, elberet admitted they could not reproduce the bug initially and acknowledged a potential issue. techAPJ later inquired if the issue persisted, stating they were unable to reproduce it on Meta or locally.
I didn’t found any complaints / solutions regarding to this issue. It’s interesting: In the moment you’re initially copy such a link with umlaut onboxing seems to create a preview. After adding a new line or by posting the preview disappears.
So… basically, everything works? What’s the actual problem?
The markdown parser looks for eligible links for oneboxing and tags these with a special class. In the post preview, such links are turned into oneboxes live, but in posted messages a background job replaces the link with the actual onebox content in the cooked HTML. This job is run asynchronously by sidekiq, so it is possible that the post will become visible in the frontend before the processing job has replaced the onebox.
In first place, after adding the link, the onbox is shown correctly. But after a space or new line, the onbox disappears. And in contrast to this discourse installation (Meta), my one isn’t showing the onbox correctly after posting.