From 14b32181ea369bd0f58b6af4ab001c8e35156372 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Thu, 29 Jun 2023 09:54:03 -0500 Subject: [PATCH] MobileArticleTarget teardown behavior is upstreamed to MobileFrontend Bug: T334263 Depends-On: If1ad6e88cf595ef3d3e54d41c00f0b79704be043 Change-Id: Idb95bfd2b71f5967396a1f36636b0a155dec2fb2 --- .../targets/ve.init.mw.MobileArticleTarget.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js index 269d54fee1..dd6539a762 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js @@ -435,23 +435,6 @@ ve.init.mw.MobileArticleTarget.prototype.tryTeardown = function () { this.overlay.onExitClick( $.Event() ); }; -/** - * @inheritdoc - */ -ve.init.mw.MobileArticleTarget.prototype.teardown = function () { - var target = this; - // Parent method - return ve.init.mw.MobileArticleTarget.super.prototype.teardown.call( this ).then( function () { - if ( !target.isViewPage ) { - var newUrl = new URL( target.viewUrl ); - if ( mw.config.get( 'wgIsRedirect' ) ) { - newUrl.searchParams.set( 'redirect', 'no' ); - } - location.href = newUrl; - } - } ); -}; - /** * @inheritdoc */