I'm currently trying to use the api to give me a url to a requested resized image on my wiki.
However, the system is currently only giving me a relative url, not a complete one. The attribute "thumburl" in the ii tag on this page is relative.
http://wiki.evageeks.org/api.php?action=query&titles=File:M26%20hanger%2...
I'd like the thumburl to be complete, as in this Wikipedia page
http://en.wikipedia.org/w/api.php?action=query&titles=File:Test.jpg&...
What setting to I need to alter in order to canonically bring this change about?
I'm using Mediawiki 1.15.1
Obsessive MathsFreak wrote:
I'm currently trying to use the api to give me a url to a requested resized image on my wiki.
However, the system is currently only giving me a relative url, not a complete one. The attribute "thumburl" in the ii tag on this page is relative.
http://wiki.evageeks.org/api.php?action=query&titles=File:M26%20hanger%2...
I'd like the thumburl to be complete, as in this Wikipedia page
http://en.wikipedia.org/w/api.php?action=query&titles=File:Test.jpg&...
What setting to I need to alter in order to canonically bring this change about?
I'm using Mediawiki 1.15.1
Wikipedia gives out a full url because it has $wgUploadPath set as a full url (needed since images are at a different host).
A related bug is https://bugzilla.wikimedia.org/show_bug.cgi?id=9087
On Mon, Jan 4, 2010 at 12:27 AM, Obsessive MathsFreak obsessivemathsfreak@gmail.com wrote:
However, the system is currently only giving me a relative url, not a complete one. The attribute "thumburl" in the ii tag on this page is relative.
That seems to be a bug, since both url and description url are full urls. This has been fixed in 1.16 (r60601)
Bryan
mediawiki-api@lists.wikimedia.org