Skip to content

Commit 33868a9

Browse files
committed
category: resolve redirects while querying categories
It seems tha redirects were not happening while fetching category results. Fix the same.
1 parent 3570377 commit 33868a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/category/CategoryInterface.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface CategoryInterface {
3434
* @return
3535
*/
3636
@GET(
37-
"w/api.php?action=query&format=json&formatversion=2&generator=allcategories&prop=categoryinfo|description|pageimages&piprop=thumbnail&pithumbsize=70",
37+
"w/api.php?action=query&format=json&formatversion=2&redirects=true&generator=allcategories&prop=categoryinfo|description|pageimages&piprop=thumbnail&pithumbsize=70",
3838
)
3939
fun searchCategoriesForPrefix(
4040
@Query("gacprefix") prefix: String?,

0 commit comments

Comments
 (0)