I would like to suggest improved behavior for hard-linking comments and answers, in order to improve the flow of UX. The intent of the suggestion is to make the linked content visible while avoiding the sudden page jumps and inconvenient repositioning.
Whenever I click a hard link, I consistently find myself scrolling up to see the question, to read details, or some such. The system as-is can often be (mildly) irritating to use, so I would like to suggest better behavior. I think the brief highlighting alone is enough to get a user's attention, so moving the page up is often not necessary.
If a comment on the main post is linked, the page should not jump down directly to that comment. Instead, the main post should remain at the top of the page, and the comment should be highlighted briefly.
If an answer is linked directly, the answer should be shown along with the question at the top of the entire page. The relevant answer would become first in the list, so the information you want (the question and answer) is immediately visible.
The linked answer is (pretty much) guaranteed to be the one you want to see. However, you may often wish to reference the question, so placing the two next to each other is a huge assist. Additionally, if you wish to see the other answers, they will be in a very predictable place.
If a comment which is not on the main post is linked, the answer it is associated with should show up at the top of the page, and the comment should be highlighted.
This is the same rationale as (2): you will pretty much always want to read the comment, so it should be clear which one has been linked (though it should remain chronological). However, since it is a comment on an answer, that answer should be easily visible. Therefore, the answer should be placed at the top of the page.
I by no means intend to say that we should show the answer in place of the comment; that would be incredibly silly. Rather, the answer should be visible in conjunction with the comment.
This isn't really a critical change, but it would make navigating linked and shared answers significantly easier and more convenient.