Steps to replicate the issue (include links if applicable):
- Attempt to view an oldid of a deleted page, e.g. https://en.wikipedia.org/w/index.php?oldid=1256155806
- (Alternatively, attempt to view an oldid for a revision that doesn't yet exist, e.g. https://en.wikipedia.org/w/index.php?oldid=9999999999)
What happens?:
MediaWiki seems to assume that the revision was from the Main Page, and also links to the Main Page's deletion log.
What should have happened instead?:
In my opinion, either the notice displayed (missing-revision) should say which page the deleted revision was from (although I assume this may not be possible), or it shouldn't assume what the page's title was at all (unless one was provided in the URL title= parameter).
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
I (re)discovered this bug after clicking on a permalink and finding that the page in question had been deleted. It seems a little misleading to refer to the Main Page, and to link to the Main Page's deletion log, when it seems like in most cases that won't actually be the page that's been deleted.
