Steps to replicate the issue (include links if applicable):
- On a wiki with DiscussionToolsEnablePermalinksFrontend set to false. (All WMF wikis except beta cluster, but not the extension-default if you're testing locally.)
- Follow a link to a talk page with a comment ID in the fragment which isn't on the page, e.g. https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#c-Bkonrad-20231204120500-Hooman_Mallahzadeh-20231204081301
What happens?:
Nothing visibly. A suppressed exception is in the console: jQuery.Deferred exception: Cannot read properties of undefined (reading 'discussiontoolsfindcomment') TypeError: Cannot read properties of undefined (reading 'discussiontoolsfindcomment')
What should have happened instead?:
A toast should have appeared, saying that the comment couldn't be found:
(From beta.)