https://wikimediafoundation.org/w/api.php is redirected to https://foundation.wikimedia.org/w/api.php. But when redirecting the url the "|" delimiters of the query are lost.
Current behaviour
Following https://wikimediafoundation.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics
will be forwardet to the url
https://foundation.wikimedia.org/w/api.php?action=query&meta=siteinfo&siprop=generalnamespacesnamespacealiasesstatistics and the error message is:
{
"batchcomplete": "",
"warnings": {
"siteinfo": {
"*": "Unrecognized value for parameter \"siprop\": generalnamespacesnamespacealiasesstatistics"
}
}
}Expected behaviour:
Redirection should be either
https://foundation.wikimedia.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics
or even better wikimediafoundation should have its own api path like https://wikimediafoundation.org/w/api.php?