Hi,
(I also posted this at http://www.mediawiki.org/wiki/Talk:API:Query_-_Lists)
Hi,
I see that the backlinks query can already filter results depending if a backlink is a redirect or not (with blfiterredir) but I don't see a way to see in the result if backlinks are actually redirect or not. Could it be added to the API ?
I need to retrieve all backlinks (recursively through redirects), so currently I call recursively the backlinks query and the redirect query. Retrieving the 2 informations in one query would be very useful for me to speed up requests ;)
I quickly looked at the code of the backlinks query and it seems simple to do (I may be overlooking things because I don't know how the API is working) : * In run(), call $this->addField('page_is_redirect'); if needed. * In extractRowInfo(), add something like $vals['redirect'] = intval($row->page_is_redirect);.
Thanks in advance for any answer :)
Nico