mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
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:
parent
3060e63758
commit
5167bfc4b9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue