Nikki added a comment.

  There's also T173248 <https://phabricator.wikimedia.org/T173248> about 
displaying it better (much older, from before they were turned into URIs).
  
  I agree that `/.well-known/genid/` URLs should redirect to something instead 
of giving an error, because even if the query service UI displays them better, 
people fetching data from the query service will also get these values, and are 
also likely to open them wondering what they are.
  
  We already do something similar for reference nodes, e.g. if you try to open 
http://www.wikidata.org/reference/0a99d4aeea2a9c9530f8886075c848033a8aac69 it 
redirects to https://www.wikidata.org/wiki/Help:Sources. Using 
https://www.wikidata.org/wiki/Help:Unknown_value should work. It currently 
redirects to a section on Help:Statements but I would still use 
Help:Unknown_value in case that ever changes.
  
  It looks like they're defined in 
https://gerrit.wikimedia.org/r/plugins/gitiles/operations/puppet/+/production/modules/mediawiki/files/apache/sites/wikidata-uris.incl
 and 
https://gerrit.wikimedia.org/g/operations/deployment-charts/+/master/charts/mediawiki/templates/lamp/_site_helpers.tpl.
 I assume copying the `/reference/` one and adding a line like this would 
probably work?
  
    RewriteRule ^/\.well-known/genid/(.*)$ 
%{ENV:RW_PROTO}://%{SERVER_NAME}/wiki/Help:Unknown_value [R=303,L]

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

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

To: Nikki
Cc: Nikki, Antoine2711, CamelCaseNick, Jheald, Bugreporter, 
Lucas_Werkmeister_WMDE, Jarekt, Aklapper, Astuthiodit_1, AWesterinen, 
karapayneWMDE, Invadibot, MPhamWMF, maantietaja, ItamarWMDE, Akuckartz, 
Nandana, Namenlos314, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, EBjune, 
merbst, LawExplorer, Salgo60, _jensen, rosalieper, Scott_WUaS, Jonas, Xmlizer, 
jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, 
Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to