From 6bd650d50ae347d9b3d8ff3ed2cd9fa973fe3323 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 8 Feb 2017 17:48:04 +0000 Subject: [PATCH] Check for 'veaction' when clicking section edit links Such as in the 'add topic' link. Bug: T157104 Change-Id: Ide2d4cf8c23a5d0db24456d15b4312f7c0a5f922 --- .../ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js index 120135038e..53522f3550 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js @@ -685,7 +685,7 @@ uri = new mw.Uri( e.target.href ), title = mw.Title.newFromText( uri.query.title || '' ); - if ( !init.isUnmodifiedLeftClick( e ) || !( 'action' in uri.query ) ) { + if ( !init.isUnmodifiedLeftClick( e ) || !( 'action' in uri.query || 'veaction' in uri.query ) ) { return; } if ( title && title.getPrefixedText() !== new mw.Title( mw.config.get( 'wgRelevantPageName' ) ).getPrefixedText() ) {