mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Switch to wikitext: Don't set oldid if unmodified current ID
Bug: T223651 Change-Id: I5a896cd98d304c419e61c5f56adb6175bc1c72a8
This commit is contained in:
parent
07bf8b723c
commit
4beab42217
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue