Links to sections on talk pages with collapsible header templates are unreliable (due to templates collapsing late and moving the page content).
Copying discussion from another task:
In T324869#8464892, @ppelberg wrote:@alexhollender_WMF also identified an issue where if you navigate directly to a section within a talk page (e.g. link 1) the wrong section within the ToC is highlighted (Actual: Etymology-Literature vs. Expected: please unclutter the montage).
Question: do we think the patch(es) that will fix the issue this ticket currently describes might also cover the issue I described above?
In T324869#8465111, @matmarex wrote:This looks unrelated. I think this problem is caused by the templates at the top, as some of them collapse with a delay as the page loads, causing the page content to move after your browser already jumped to the section. I don't know right now if this is a problem with the template markup, with some Wikipedia customization code, or with one of our teams's code. We should file a separate bug. (Also, this might be the same issue: https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Section_links_don't_work_anymore.)
You can watch this happen if you zoom out a bunch (so that you can see the whole talk page header), then throttle download speed in browser developer tools to make the page load slower.
Video: