Closed wahlstedt closed 3 years ago
Ah, you're right. I actually implemented the REST endpoints later after the language feature was already stable.
The issue looks like it is in this line where I actually set an extra un-needed \page
when setting the new object in case language changes.
Very simple fix to just remove that part. A PR would be welcome or I will fix this by tomorrow.
Getting results in other languages has problems. Grabbing a page works, but things like summaries and On This Day are not. It seems like it's not using the correct REST url. For example, for the Swedish site the summary page should be
sv.wikipedia.org/api/rest_v1/page/summary/Stockholm
but it tries to usesv.wikipedia.org/v1/page/page/summary/Stockholm
instead.