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%20bakelite%20shinji%201.jpg&prop=imageinfo&iiprop=url&iiurlwidth=250
> 
> 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&prop=imageinfo&iiprop=url&iiurlwidth=100
> 
> 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



_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to