dcausse added a comment.

  I'd be in favor of enabling the minimum needed here and just do the entity 
resolution here, doing the statement sounds a bit more complex as it may work 
for wikibase because we will redirect to the entity page which will support 
statement anchors, for commons we redirect to the File page.
  As you can see in the existing rewrite rule the statement id is completely 
ignored:
  
    RewriteRule ^/entity/statement/([QqPp]\d+).*$ 
%{ENV:RW_PROTO}://%{SERVER_NAME}/wiki/Special:EntityData/$1 [R=303,L]
  
  The fix could be:
  
    RewriteRule ^/entity/statement/([QqPp]\d+)-(.*)$ 
%{ENV:RW_PROTO}://%{SERVER_NAME}/wiki/Special:EntityData/$1#$2 [R=303,L]
  
  But I doubt that would work for commons.

TASK DETAIL
  https://phabricator.wikimedia.org/T222321

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Gehel, dcausse
Cc: dcausse, Abbe98, Lucas_Werkmeister_WMDE, Tpt, Addshore, Ramsey-WMF, 
Lydia_Pintscher, Aklapper, Smalyshev, Hook696, Daryl-TTMG, RomaAmorRoma, 
0010318400, E.S.A-Sheild, darthmon_wmde, Meekrab2012, joker88john, DannyS712, 
CucyNoiD, Nandana, NebulousIris, JKSTNK, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, PDrouin-WMF, Gq86, 
Af420, E1presidente, Cparle, Darkminds3113, Anooprao, SandraF_WMF, Bsandipan, 
Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
EBjune, Tramullas, Acer, merbst, LawExplorer, Salgo60, WSH1906, Lewizho99, 
Maathavan, Silverfish, Poyekhali, _jensen, rosalieper, Taiwania_Justo, Cirdan, 
Jonas, Xmlizer, Susannaanas, Ixocactus, suriyaa, Wong128hk, Jane023, jkroll, 
Wikidata-bugs, Jdouglas, Base, matthiasmullie, aude, Tobias1984, El_Grafo, 
Dinoguy1000, Manybubbles, Ricordisamoa, Wesalius, Southparkfan, Fabrice_Florin, 
Raymond, Jdforrester-WMF, Steinsplitter, Mbch331, Glaisher, Krenair, Keegan
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to