Jdlrobson added a comment.
> However, this would make a big difference on Wikidata. We would configure
the Wikidata search client (wgVectorSearchClient override) to directly return
item page URLs, bypassing Special:Search – because searching for the label of
an item will not redirect to that item: in fact, the list of search results for
an item’s label doesn’t even necessarily include that item, if its label was
sufficiently generic and there are too many other search results.
Can you use wgVectorSearchUrlGenerator ?
mw.config.set('wgVectorSearchUrlGenerator', { generateUrl: function () {
return '42'; } } )
(needs to be loaded before the search code is loaded)
TASK DETAIL
https://phabricator.wikimedia.org/T317682
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Jdlrobson
Cc: dcausse, Gehel, Jdlrobson, Catrope, AnneT, jhsoby, Aklapper, Michael,
Lucas_Werkmeister_WMDE, phuedx, hnijhuis, Astuthiodit_1, Patafisik_WMF,
karapayneWMDE, Invadibot, MPhamWMF, Selby, Universal_Omega, maantietaja,
NavinRizwi, CBogen, ItamarWMDE, Akuckartz, Demian, DannyS712, Nandana,
Amorymeltzer, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, LawExplorer,
JJMC89, Iniquity, _jensen, rosalieper, Agabi10, Scott_WUaS, Volker_E,
Wikidata-bugs, aude, Dinoguy1000, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]