Bartosz Dziewoński has uploaded a new change for review. https://gerrit.wikimedia.org/r/161747
Change subject: mediawiki.action.view.redirect: Remove deployment hack ...................................................................... mediawiki.action.view.redirect: Remove deployment hack Follow-up to c49bd9cb. Change-Id: Ic3904d40e89533483434e074b2021d4ec3db6831 --- M resources/Resources.php M resources/src/mediawiki.action/mediawiki.action.view.redirect.js 2 files changed, 0 insertions(+), 10 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/47/161747/1 diff --git a/resources/Resources.php b/resources/Resources.php index c634d9d..74319e0 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -1063,11 +1063,6 @@ ), 'position' => 'top', ), - // Deployment hack for compatibility with cached HTML, remove before 1.24 release - 'mediawiki.action.view.redirectToFragment' => array( - 'dependencies' => 'mediawiki.action.view.redirect', - 'position' => 'top', - ), 'mediawiki.action.view.redirectPage' => array( 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css', 'position' => 'top', diff --git a/resources/src/mediawiki.action/mediawiki.action.view.redirect.js b/resources/src/mediawiki.action/mediawiki.action.view.redirect.js index b9aa137..52e0d4e 100644 --- a/resources/src/mediawiki.action/mediawiki.action.view.redirect.js +++ b/resources/src/mediawiki.action/mediawiki.action.view.redirect.js @@ -14,11 +14,6 @@ // Clear internal mw.config entries, so that no one tries to depend on them mw.config.set( 'wgInternalRedirectTargetUrl', null ); - // Deployment hack for compatibility with cached HTML, remove before 1.24 release - if ( !canonical ) { - canonical = mw.config.get( 'wgRedirectToFragment' ); - } - index = canonical.indexOf( '#' ); if ( index !== -1 ) { fragment = canonical.slice( index ); -- To view, visit https://gerrit.wikimedia.org/r/161747 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic3904d40e89533483434e074b2021d4ec3db6831 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_24 Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits