Esanders has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/326975 )
Change subject: Fix action=editsource URL rewriting ...................................................................... Fix action=editsource URL rewriting Always look for links unless the only tab is VE. Bug: T153054 Change-Id: Ic1f1de26fb77098fe62f6263a25c8a40de0e09a7 --- M modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js 1 file changed, 9 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/75/326975/1 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 5e9cbca..a60540f 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 @@ -1022,8 +1022,15 @@ } // NWE - if ( init.isWikitextAvailable && isOnlyTabWikitext() ) { - $( '.mw-editsection a, #ca-edit a' ).each( function () { + if ( init.isWikitextAvailable && !isOnlyTabVE() ) { + $( + // Edit section links, except VE ones when both editors visible + '.mw-editsection a:not( .mw-editsection-visualeditor ),' + + // Edit tab + '#ca-edit a,', + // Add section is currently a wikitext-only feature + '#ca-addsection a' + ).each( function () { var uri = new mw.Uri( $( this ).attr( 'href' ) ); delete uri.query.action; uri.query.veaction = 'editsource'; -- To view, visit https://gerrit.wikimedia.org/r/326975 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic1f1de26fb77098fe62f6263a25c8a40de0e09a7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Esanders <esand...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits