Page MenuHomePhabricator

Revision deletion breaks navigation links in diffs
Closed, DuplicatePublic

Description

Steps to reproduce:

  1. Start with https://en.wikipedia.org/w/index.php?title=Fourways_Farm&diff=900305762&oldid=898153409&diffmode=source, which is the last visible diff before the revision deletion.
  2. Click "Next edit ->", this takes you to https://en.wikipedia.org/w/index.php?title=Fourways_Farm&diff=next&oldid=900305762&diffmode=source, which shows a note that the diff can't be shown.
  3. Click "Next edit ->".

Actual result:
This takes you to https://en.wikipedia.org/w/index.php?title=Fourways_Farm&diff=next&oldid=900399089, which is an error page.

Expected result:
It should show a notice like in step 2. This would also allow to navigate to the next diff (if there is one), sysops could restore the revision, etc.