Lucas_Werkmeister_WMDE added a comment.

  It looks like we’re making a client-side cross-wiki request from 
pi.wikipedia.org to www.wikidata.org, and the error in the response contains 
relative URLs (`<a href="/wiki/Special:MyLanguage/Wikidata:Notability"`). This 
isn’t the first time that relative URLs in API responses have caused issues, 
but I don’t think we have a great solution for it… (the `wbformatentities` API 
addresses it using RemexHtml, for example; I don’t remember the other cases I 
encountered right now). I guess the client-side code should go through the HTML 
that it receives and turn all relative hrefs into absolute ones by adding the 
`wbRepo.url` to them.

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

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

To: Lucas_Werkmeister_WMDE
Cc: Daimona, CX_Zoom, Lydia_Pintscher, Lucas_Werkmeister_WMDE, Manuel, 
Aklapper, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, 
Akuckartz, 94rain, Nandana, Lahi, Gq86, GoranSMilovanovic, ihojose, QZanden, 
LawExplorer, Litanwei, JJMC89, _jensen, rosalieper, Scott_WUaS, Wong128hk, 
Nirmos, Wikidata-bugs, aude, Nullzero, Huji, Billinghurst, Jackmcbarn, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to