When a link to a journal topic is clicked while you are in another topic, then the rendering of the topic crashes halfway. The topic title is replaced but the posts are not.
Pressing refresh in the browser after this happens will render the topic correctly.
I put the link in a PM for this example but the most common way where this happens is when a notification is being clicked.
If you’re on a topic list when you click the link then the topic will render correctly.
The offending line is here:
let showingComments = showComments.indexOf(p.entry_post_id) > -1;
Discourse v 3.1.3 (stable,
9918069 (current when stable was released)