Merge "If VE was opened on action=edit URL, redirect to view URL when closing"

This commit is contained in:
jenkins-bot 2018-06-25 16:50:25 +00:00 committed by Gerrit Code Review
commit 1a0ea50bd6

View file

@ -675,6 +675,12 @@ ve.init.mw.DesktopArticleTarget.prototype.teardown = function ( trackMechanism )
.removeClass( 've-init-mw-desktopArticleTarget-uneditableContent' );
mw.hook( 've.deactivationComplete' ).fire( target.edited );
if ( !target.isViewPage ) {
location.href = target.viewUri.clone().extend( {
redirect: mw.config.get( 'wgIsRedirect' ) ? 'no' : undefined
} );
}
} );
} );
};