The untuitive way of getting a list of all redirects on the wiki and their target doesn't work: the query below gives the error "Use "gapfilterredir=nonredirects" option instead of "redirects" when using allpages as a generator". Since I am already using "gapfilterredir=redirects" instead, this advice is quite unhelpful.
These both work:
- https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&generator=allpages&gapfilterredir=redirects
- https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&titles=(titles from the query above)&redirects=1
I would expect my failing query to give similar results as the last example.