Page MenuHomePhabricator

Search listing redirects as "redirect Wikispecies:WS:xyz" instead of just "WS:xyz"
Closed, DeclinedPublic

Description

For example, https://species.wikimedia.org/wiki/Special:Search/Project:Admin

Expected top result:
[[Wikispecies:Administrators]] (redirect [[WS:ADMIN]])
Actual top result:
[[Wikispecies:Administrators]] (redirect [[WS:ADMIN|Wikispecies:WS:ADMIN]])

Note that [[species:Wikispecies:WS:ADMIN]] does not exist.


Version: wmf-deployment
Severity: minor

Details

Reference
bz57471

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:39 AM
bzimport set Reference to bz57471.
bzimport added a subscriber: Unknown Object (MLST).

I cannot reproduce. I get your expected result in both cases.

(In reply to comment #2)

I cannot reproduce. I get your expected result in both cases.

Nevermind. I got confused, I thought you meant a literal [[WS:ADMIN|Wikispecies:WS:ADMIN]], showing the bar and anything, not that that is what the wikicode of what you are seeing would be.

(In reply to comment #3)

(In reply to comment #2)

I cannot reproduce. I get your expected result in both cases.

Nevermind. I got confused, I thought you meant a literal
[[WS:ADMIN|Wikispecies:WS:ADMIN]], showing the bar and anything, not that
that
is what the wikicode of what you are seeing would be.

I don't know how to format links in Bugzilla...

This appears to still be the case, even with CirrusSearch backend

(In reply to comment #5)

This appears to still be the case, even with CirrusSearch backend

Actually I'm not even sure if I'm triggering the different backend correctly...


Issue appears to be in the getRedirectSnippet() method of the relavent search results class.

As a point of clarity, comment 0 is not describing output, but what the wikitext would be like for the output that is seen.

If one ignored links/formatting, the actual behaviour is:

Wikispecies:Administrators (redirect Wikispecies:WS:ADMIN)

and the expected behaviour would be

Wikispecies:Administrators (redirect WS:ADMIN)

Should this be under MediaWiki/Search? I know Wikimedia doesn't use the default search though.

Note: CirrusSearch can be tested by attaching ?srbackend=CirrusSearch to the URL (and Cirrus is available according to https://species.wikimedia.org/wiki/Special:Version ).

(In reply to comment #10)

Note: CirrusSearch can be tested by attaching ?srbackend=CirrusSearch to the
URL (and Cirrus is available according to
https://species.wikimedia.org/wiki/Special:Version ).

Cirrus doesn't even show the redirects apparently.

I'm unable to reproduce this bug in CirrusSearch. Given that we're in the process of migrating from Lucene to CirrusSearch, I'm marking this bug as RESOLVED WONTFIX.