Steps to reproduce
- Login and turn on Beta mode in the hamburger menu settings at https://en.m.wikipedia.org/
- Visit https://en.m.wikipedia.org/wiki/Barack_Obama#/categories
- Click the "Add to category" blue button
- Type "1961" into the search box. Notice that there are no <strong> tags around the word "1961". Note: strong tags appearing in the results is a bug captured in T224819. The strong tags should not be escaped and the letters should be bolded instead.
- Now clear the input and type "Category:1961". Notice there are <strong> tags around the word "Category:1961"
Expected results
- "1961" is highlighted when you type that in the text input without "Category:" in front of it
Actual results
- "1961" is not highlighted. It is only highlighted when you type "Category:1961"
Environments observed
- Browser version: Chrome Version 75.0.3770.80
- OS version: Mac OS 10.14.5
- Device model: MacBook Pro
- Device language: En
Check any additional observations
- Observed on the beta cluster wiki
- Observed on a production wiki
- Observed on Vector desktop skin
- Observed on MinervaNeue responsive skin
- Observed while logged in
- Observed while not logged in (anonymous)
Open Questions
- This highlight algorithm is the same one we use in mobile search box. This bug is present in the CategoryOverlay because the search results contain the "Category" namespace in the results. If we removed the namespace from the results, we might be able to keep the same highlight algorithm.
