Use decodeURI for comment ID searches as well as heading searches

Bug: T356199
Change-Id: I8d366c706692caf89a2af9f11c14a9aad9422b7c
This commit is contained in:
Ed Sanders 2024-02-02 17:33:19 +00:00
parent 6feddf4938
commit df7d101cd2

View file

@ -599,7 +599,7 @@ function init( $container, state ) {
}
} else if ( highlightResult.highlighted.length === 0 && highlightResult.requested.length === 1 ) {
findCommentQuery = {
idorname: highlightResult.requested[ 0 ]
idorname: decodeURI( highlightResult.requested[ 0 ] )
};
isHeading = highlightResult.requested[ 0 ].slice( 0, 1 ) === 'h';
}