decodeURI fragments before sending them to discussiontoolsfindcomment

Section titles containing non-ASCII characters were being passed through
URL-encoded, resulting in no results being found.

Bug: T356199
Change-Id: Iac56ee434a37baf3d170aec992d2f2d8679b6f1f
(cherry picked from commit c4bbf8756a)
This commit is contained in:
David Lynch 2024-01-30 14:14:18 -06:00 committed by DLynch
parent 3060e63758
commit 5167bfc4b9

View file

@ -590,7 +590,7 @@ function init( $container, state ) {
return !pattern.test( fragment );
} ) ) {
findCommentQuery = {
heading: fragment.replace( / /g, '_' ),
heading: decodeURI( fragment ).replace( / /g, '_' ),
page: mw.config.get( 'wgRelevantPageName' )
};
isHeading = true;