category: resolve redirects while querying categories

It seems tha redirects were not happening while fetching
category results. Fix the same.
This commit is contained in:
Kaartic Sivaraam 2025-01-23 00:58:03 +05:30
parent 3570377678
commit a307683bee

View file

@ -34,7 +34,7 @@ interface CategoryInterface {
* @return * @return
*/ */
@GET( @GET(
"w/api.php?action=query&format=json&formatversion=2&generator=allcategories&prop=categoryinfo|description|pageimages&piprop=thumbnail&pithumbsize=70", "w/api.php?action=query&format=json&formatversion=2&redirects=true&generator=allcategories&prop=categoryinfo|description|pageimages&piprop=thumbnail&pithumbsize=70",
) )
fun searchCategoriesForPrefix( fun searchCategoriesForPrefix(
@Query("gacprefix") prefix: String?, @Query("gacprefix") prefix: String?,