A user, Moin, encountered an issue with oneboxing anchor links. When linking to a specific headline within a post, the onebox displayed the first answer instead of the linked post. Moin provided steps to reproduce the issue and tested it in the topic. JammyDodger attempted to replicate the issue and found it only occurred when previewing, not when posting. Moin later reported that the issue was fixed and could no longer be reproduced, even on a test site (try.discourse.org).
I noticed a strage behavior with the onebox of an anchor link.
Steps
Create a topic with anchors
Answer to that post
Answer again with an anchor link to the second headline
→ Expected result a onebox showing the beginning of the linked post. At least this in what will happen if you post the same link in another topic. But you see the first answer as a onebox.
This is a fun one. In my preview it’s showing the OP in the onebox. Let’s see if it travels through to posting.
Update: That seemed to work okay. Perhaps something to do with the post number or user? I shall have an explore on my test site. Thanks for reporting @Moin