Description
Coming out of https://phabricator.wikimedia.org/T281797 (once it is merged), when the highlightQuery feature flag is set to true and pages are rendered in certain languages, the dropdown results are not bolded as expected.
List of steps to reproduce (step by step, including full links if applicable):
- In a local development environment, pull in relevant patches (vector + wvui) if they've not already been merged.
- Make sure wvui built assets are sync'd to mediawiki/resources/lib/wvui
- Update LocalSettings to use wvui search, set the search host to bn to use Bengali as an example, and set highlightQuery feature flag to true:
# WVUI Search $wgVectorUseWvuiSearch = true; $wgVectorSearchHost = 'bn.wikipedia.org'; $wgVectorWvuiSearchOptions = [ "showThumbnail" => true, "showDescription" => true, "highlightQuery" => true ];
- Use a Bengali string like "ইতাল" in the search box to view dropdown results.
- Compare the search dropdown results with and without the query parameter uselang=bn.
What happens?:
When adding the query parameter ?uselang=bn to the url to translate the page into Bengali, the search results dropdown items after the query match are NOT bolded as expected.
What should have happened instead?:
The search results dropdown items should have characters after the query match bolded as they do when the query parameter is not added: