After T173172 was resolved, </span> tags started to appear in the results as expected. However, another trouble showed up: when the search match is contained within a section title, it is still wrapped in a searchmatch span, being even nastier than the already corrected ones. In fact, this time it is considered as part of the link and the link to the section itself is corrupted. Take this search: https://it.wikipedia.org/w/index.php?title=Speciale:Ricerca&profile=all&search=%22spazio+unificatore+come+se+piovesse%22&fulltext=1&searchToken=6cwj3dydyftxsype3vw2fwczd
the 2nd result is a match in a section title. However, the bold link includes the whole span (actually more than one) and it doesn't lead to any section because of this.
Description
Details
Related Objects
Event Timeline
Triaging as high since it's almost the same as the other task (triaged as high) but this time it may cause bigger troubles, even to a "normal user" who doesn't care about </span>.
Change 386521 had a related patch set uploaded (by EBernhardson; owner: EBernhardson):
[mediawiki/extensions/CirrusSearch@master] Strip highlighting before converting to html
Change 386521 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] Strip highlighting before converting to html
Change 387440 had a related patch set uploaded (by EBernhardson; owner: EBernhardson):
[mediawiki/extensions/CirrusSearch@wmf/1.31.0-wmf.4] Strip highlighting before converting to html
Change 387441 had a related patch set uploaded (by EBernhardson; owner: EBernhardson):
[mediawiki/extensions/CirrusSearch@wmf/1.31.0-wmf.5] Strip highlighting before converting to html
Change 387440 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@wmf/1.31.0-wmf.4] Strip highlighting before converting to html
Change 387441 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@wmf/1.31.0-wmf.5] Strip highlighting before converting to html