Merge "mw.DesktopArticleTarget: remove action=edit when tearing down as single-tab"

This commit is contained in:
jenkins-bot 2018-06-25 17:59:14 +00:00 committed by Gerrit Code Review
commit 13fb253532

View file

@ -1357,7 +1357,8 @@ ve.init.mw.DesktopArticleTarget.prototype.restorePage = function () {
}
delete uri.query.section;
}
if ( 'action' in uri.query && $( '#wpTextbox1' ).length === 0 ) {
if ( 'action' in uri.query && $( '#wpTextbox1:not(.ve-dummyTextbox)' ).length === 0 ) {
// If we're not overlaid on an edit page, remove action=edit
delete uri.query.action;
mw.config.set( 'wgAction', 'view' );
}