Page MenuHomePhabricator

Empty language parameter in URL creates a confusing result
Closed, ResolvedPublic

Description

These 2 links, with/without an empty &language= parameter, lead to different results, if the user's interface language is set to anything except English:
https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Tech%2FNews%2F2016%2F21&language=&action=page&filter=
https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Tech%2FNews%2F2016%2F21&action=page&filter=

8tOVP9.png (1×1 px, 205 KB)

They should lead to the same (second) result.

Event Timeline

Nikerabbit lowered the priority of this task from Low to Lowest.May 23 2016, 8:03 AM
Nikerabbit added a project: good first task.
Nikerabbit subscribed.

Should be easy to fix, but because I am not aware of anything generating this kind of URLs, low priority.

Change 424607 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Move language validation from Special:Translate to ApiQueryMessageCollection

https://gerrit.wikimedia.org/r/424607

Change 424607 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Move language validation from Special:Translate to ApiQueryMessageCollection

https://gerrit.wikimedia.org/r/424607