Include generated metadata for redirects
authorErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 10 Aug 2015 17:51:22 +0000 (10:51 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 11 Aug 2015 00:28:31 +0000 (17:28 -0700)
commit02750270545e004045af37b42def64669213ee88
tree479c490560b9b1ce8bb65cd632d87f208fdfd2fa
parent11e47561e4652adf1180987f28a2d673286937a0
Include generated metadata for redirects

If a page is returned but is resolved as a redirect the generated
data, such as the position of the result in search, is lost. Retain
that data by including it in under the 'redirects' key.

Bug:  T92796
Change-Id: I6c1871dee517dd9a9a8a70cbd6ece0bc42dd0667
includes/api/ApiPageSet.php