Fix action!=edit opening the editor

Bug: T196150
Change-Id: I5bd4b5ce231f5269676d0706e6762f33f6faa344
This commit is contained in:
David Lynch 2018-06-04 10:20:17 -05:00
parent ec83db7d2d
commit e91295a5ea
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@
ev.stopPropagation();
} );
if ( !router.getPath() && ( mw.util.getParamValue( 'veaction' ) || mw.util.getParamValue( 'action' ) ) ) {
if ( !router.getPath() && ( mw.util.getParamValue( 'veaction' ) || mw.util.getParamValue( 'action' ) === 'edit' ) ) {
if ( mw.util.getParamValue( 'veaction' ) === 'edit' ) {
editorOverride = 'VisualEditor';
} else if ( mw.util.getParamValue( 'veaction' ) === 'editsource' ) {