Steps to replicate the issue (include links if applicable):
- Visit https://test.wikipedia.org/w/index.php?diff=undefined, which was generated by one of my user scripts accidentally
What happens?:
- Unexpected main page diff is shown
What should have happened instead?:
- User friendly error should be shown, such as "invalid page ID" or "invalid revision ID" or similar
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):