Splitting off from T268992#6680158.
Reply tool does not work for most comments on community wishlist index pages, e.g. https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2021/Citations. (The survey is closed now, so please don't save the changes, but presumably there will be another similar one next year.)
Reply links in the first section work (except the first one); but those in following sections do not (except for nested comments).
This weird behavior occurs because the section structure on that index page is different from the sections on the transcluded subpages like https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2021/Citations/Structuring_of_individual_references (where all reply links work):
- h2 section headings on the index page are not present on the subpage
- h3 section headings on the index page have numbers added to their id attributes (which would otherwise be identical), on the subpage they don't