Special:FilePath no longer shows an error before you use it
People who open the Special:FilePath shortcut now see a clean form instead of red error messages.
Before and after


The problem
Special:FilePath is a shortcut for finding a file. If you opened it without a file name, the form it led to showed "There are problems with some of your input" and "This value is required" straight away, although you had not typed or pressed anything yet. It looked as if you had done something wrong.
What I changed
The shortcut added an empty value to the web address, and the form treated any value in the address as "the user pressed Go". Now the shortcut only adds the value when there is one, so the form opens clean. A wrong file name is still filled in for you to correct. Automatic tests check an empty, a correct and a wrong file name.
Where it runs now
Waiting for review on Gerrit (MediaWiki core).
Related contributions
In reviewA Cancel button on the "Add to watchlist?" page
People who watch pages without JavaScript, for example on basic phones, can now change their mind and go back to the page with one click.
