If a vandal blanks a page and that edit is rolled back, the page is restored to Wikipedia but pagelinks is not restored. As far as pagelinks is concerned, that page has no outgoing links. The problem goes away with a null edit.
I've seen this happen with page blanking and when vandals replace content with "hi" etc. Also, I've seen it when ClueBot does the rollback, and when a Huggle user does the rollback, so it isn't a bot-only problem or something like that.
This could happen with every rollback. It has come to my attention because I've created a toolserver page that builds a list of deadend pages, and I kept getting articles that had no business whatsoever in the list - Yoko Ono, for instance.
How to reproduce:
- Pick one of these articles I've found to exhibit the bug (as of time of writing): "2006 Winter Olympics", "Infectious disease", "List of poems"
- Verify that the last edit in its history is a user rolling back blanking vandalism
- Pick any link on the page (on "Infectious disease", I chose "Clostridium difficile") and click it
- Click "What links here" for the random link
- Search the "What links here" list for your article, it isn't there
This is causing a problem for me because if it weren't for this bug, my deadend articles list would be suitable for a bot to use for auto-tagging. But because of this, everything must be reviewed manually.