steps to reproduce:
- Have a page with a non-resolvable (interwiki) redirect (to a namespace different from 0): https://de.wikipedia.beta.wmflabs.org/wiki/Benutzer:Hgzh/a
- try to edit this page using the API and the redirect=1 parameter https://de.wikipedia.beta.wmflabs.org/w/api.php?action=edit&format=json&title=Benutzer%3AHgzh%2Fa&appendtext=Test&redirect=1&token=
expected behaviour:
- some kind of error message
observed behaviour:
- a new page is created
- it is in the main namespace (0); page.page_namespace = 0
- the page title contains the namespace prefix; page.page_title = 'User talk:Hgzh' (normally, no namespace prefix is added in this field)
- the interwiki prefix is stripped somewhere
- example: https://de.wikipedia.beta.wmflabs.org/wiki/Special:Redirect/page/4809
- as this new page contains the namespace prefix in its title, it is only accessable via curid
- every ui action refers to the actual talk page (links, protect/delete etc.) instead of the previously created page as they seem to rely on the page_title
- the new page can only be deleted using the API with curid
API query:
/w/api.php?action=edit&format=json&title=Benutzer%3AHgzh%2Fa&appendtext=Test&redirect=1&token=
API response:
{
"redirects": [
{
"from": "Benutzer:Hgzh/a",
"to": "meta:User talk:Hgzh"
}
],
"edit": {
"new": "",
"result": "Success",
"pageid": 4809,
"title": "meta:User talk:Hgzh",
"contentmodel": "wikitext",
"oldrevid": 0,
"newrevid": 25355,
"newtimestamp": "2019-11-28T15:43:19Z"
}
}