Steps to reproduce:
- Go to https://en.wikipedia.org/wiki/Archie_Webster_House
- Edit the article in the 2017 wikitext editor
- Replace {{NRIS-only|date=December 2013}} with I'm making some changes!
- Click "Article" to abandon your edit
- Edit the article in the 2017 wikitext editor
Expected behaviour:
- The wikitext is the latest revision, so the first line is {{NRIS-only|date=December 2013}}
Actual:
- Your changes are "recovered", so the first line is I'm making some changes!
Notes:
- For clarity, I chose a specific example for my reproduction steps. You can change quite a bit and still have it be reproducible, so this also occurs if you:
- make any other kind of change rather than just replacing the first line (obviously)
- use the visual editor instead of the 2017 wikitext editor
- leave the article a different way, such as clicking "Random article" or clicking on a bookmark
- This does not occur if you click "Read" to abandon your edit. Basically, if you see the modal dialogue in the below screenshot, then your changes will definitely be abandoned.
- This does not occur if you close the tab you had the editor open in, and edit the same page in a new tab.
