Steps to replicate the issue (include links if applicable):
- Go to https://de.wikipedia.org/wiki/Does-not-exist
- Click "Suche nach Does not exist in anderssprachigen Wikipedias" to go to https://www.wikipedia.org/?search=Does-not-exist%20&uselang=de
What happens?:
- The location is changed to https://www.wikipedia.org/
- The search input is focused, but remains empty!
What should have happened instead?:
- The search input contains "Does-not-exist"
Story:
When www.wikipedia.org is opened, the page should evaluate for the presence of the url query parameter <code>search</code>. If this url query parameter is present, then retrieve its value and profile the search field of www.wikipedia.org with this value.
It also needs to avoid security problems, as it takes user input from a potentially untrusted location (the url address), by applying the proper escaping at the proper places.