List of steps to reproduce:
- Go to https://ru.wikipedia.org/w/index.php?title=Иванов,_Валентин_Дмитриевич&diff=116003785&oldid=116003248&uselang=en while being logged on and having VisualEditor enabled.
- Expand RevisionSlider.
- Click "Older edit ←".
What happens?:
- The URL in the address bar changes to https://ru.wikipedia.org/w/index.php?diff=116003248&oldid=116002121&title=Иванов,_Валентин_Дмитриевич&uselang=en&diffmode=source.
- But then it reverts to https://ru.wikipedia.org/w/index.php?title=Иванов,_Валентин_Дмитриевич&diff=116003785&oldid=116003248&uselang=en&diffmode=source.
- As a result, if you refresh the page, you will see the original revision that you opened, not the one you navigated to.
What should have happened instead?:
The URL reversion shouldn't happen.
Why it happens?
I've debugged a bit, and the immediate reason of the reversion is this line of code: https://phabricator.wikimedia.org/diffusion/EVED/browse/master/modules/ve-mw/preinit/ve.init.mw.DiffPage.init.js$95.
history.replaceState( '', document.title, uri );
This code is part of the onReviewModeButtonSelectSelect function related to this button group:
This happens only in wikis that have this button on diff pages (I guess this means VisualEditor enabled).