Page MenuHomePhabricator

Comment IDs with anchors are unreachable via Special:GoToComment
Closed, ResolvedPublicBUG REPORT

Description

What happens?:
https://ru.wikipedia.org/wiki/Википедия:Оспаривание_итогов#Википедия:К_удалению/28_декабря_2023#Sonic_Kart_3DX generates the following link for the opening message:

https://ru.wikipedia.org/wiki/Википедия:Оспаривание_итогов#c-Sleeps-Darkly-20240811163100-Википедия:К_удалению/28_декабря_2023#Sonic_Kart_3DX

This link can be reached normally for some users by going to it but if you use Special:GoToComment, which is preferable way for the longevity of links, you can no longer find it:
https://ru.wikipedia.org/wiki/Служебная:FindComment/c-Sleeps-Darkly-20240811163100-Википедия:К_удалению/28_декабря_2023#Sonic_Kart_3DX

What should have happened instead?:
Anchor sign should either be replaced with an underscore or the part after the anchor should be skipped. That should make those links permanently available via Special:GoToComment.

This issue affects Convenient-Discussions since it relies on Special:GoToComment for links.

Event Timeline

Change #1300788 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] SpecialFindComment: Hide link to GoToComment if it has an anchor

https://gerrit.wikimedia.org/r/1300788

Change #1300788 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] SpecialFindComment: Hide link to GoToComment if it has an anchor

https://gerrit.wikimedia.org/r/1300788

Fixed as much as it's going to be in this task – FindComment will no longer generate non-working links to GoToComment. We can continue thinking about how to generate working links for this case on T426732.