Switch to wikitext: Don't set oldid if unmodified current ID

Bug: T223651
Change-Id: I5a896cd98d304c419e61c5f56adb6175bc1c72a8
This commit is contained in:
Ed Sanders 2019-05-22 14:32:54 +01:00
parent 07bf8b723c
commit 4beab42217

View file

@ -1544,7 +1544,7 @@ ve.init.mw.DesktopArticleTarget.prototype.switchToFallbackWikitextEditor = funct
section: target.section,
veswitched: 1
} );
if ( oldId ) {
if ( oldId && oldId !== mw.config.get( 'wgCurRevisionId' ) ) {
uri.extend( { oldid: oldId } );
}
location.href = uri.toString();