Skip to content

Commit

Permalink
category: resolve redirects while querying categories
Browse files Browse the repository at this point in the history
It seems tha redirects were not happening while fetching
category results. Fix the same.
  • Loading branch information
sivaraam committed Jan 22, 2025
1 parent 3570377 commit a307683
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface CategoryInterface {
* @return
*/
@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(
@Query("gacprefix") prefix: String?,
Expand Down

0 comments on commit a307683

Please sign in to comment.