Page MenuHomePhabricator

Search results on mobile should exclude pages where the search terms are not rendered on mobile
Open, Needs TriagePublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):

What happens?:

  • You see about 300 articles in the search results.
  • Click on any of the articles in mobile, and observe that the text "Azerbaijan: MTN (until 2015)" does not appear in the rendered article or in its source text.
  • Switch to desktop view of any of the articles, and you can see that text inside one of the navboxes.

What should have happened instead?:

  • In the mobile view, navboxes are not displayed, so search results on mobile should exclude text that appears in navboxes.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Mobile version of English Wikipedia

Event Timeline

I think this lacks a practical technical solution given the way MobileFrontend applies its transformations on top of the output of the parser.

Eventually, we'd like to not scrub content such as navboxes and I think that's a better use of time, rather than adding to the technical debt by adding special handling in search.

Perhaps there's an argument here that content such as navboxes should be ignored in search indexing, potentially by allowing editors to mark up content that is not primary content. If not, I think this should be declined or at least merged into T124168

If you're declining it then decline it, but it clearly is not a duplicate.

@Nardog: Could you elaborate why you think that this is not a duplicate?

If the navboxes are displayed in the mobile skin, then this separate bug can be marked as fixed by the resolution of T124168. While that feature request remains open, or if it is marked as declined/won't fix, this bug will need to stay open.