Page MenuHomePhabricator

Hovercard article topic bolding fails if the page title has some qualifier
Closed, DuplicatePublic

Description

Assumption: the article topic should be highlighted as bold in the page preview (currently expected behaviour). Currently, the words in the text extract are marked as bold only if there is exact match with the page title. This logic fails for pages with qualifiers - in this case, usually no bold text can be found in the extract/page preview, because qualifiers are not used in the text (they are redundant there).

Steps to reproduce

  1. Copy this page's source. Note the qualifier in the page title.
  2. Link to it from another article. e.g. https://cs.wikipedia.org/wiki/Wikipedie:Pod_l%C3%ADpou_(technika)#Hovercards_u_osob
  3. See its hovercard.

Expected behavior
Text Vladimír Dlouhý (page topic = page name without qualifier) should be bold in hovercard.

Current behavior
There is no bold text in hovercard's text extract:

Related Objects

Event Timeline

Dvorapa created this task.Aug 19 2017, 10:41 PM
Vachovec1 renamed this task from Hovercard text extract's person name is not bold like in source to Hovercard article topic bolding fails if the page title has some qualifier.Aug 20 2017, 7:05 AM
Vachovec1 updated the task description. (Show Details)
Vachovec1 updated the task description. (Show Details)Aug 20 2017, 7:15 AM
JAnD added a subscriber: JAnD.Aug 20 2017, 7:26 PM
Jdlrobson updated the task description. (Show Details)Aug 21 2017, 7:15 PM

Thanks for another detailed bug report :) It's looking good in new API.
I've added a test case to show this is fixed by it!: https://gerrit.wikimedia.org/r/372875

Restricted Application added a subscriber: Zoranzoki21. · View Herald TranscriptMar 2 2018, 3:43 PM
Dvorapa moved this task from Backlog to Done on the Page-Previews board.Mar 2 2018, 3:43 PM

Finally solved by T182321