When viewing an old revision of a page, clicking "edit" normally brings you to a URL like action=edit&oldid=XXXXX. For certain revisions of certain pages, the "edit" link does not include the oldid parameter. For example:
Clicking edit brings you to:
It should bring you to: