Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/95562


Change subject: Redirect action=history links to mobile view
......................................................................

Redirect action=history links to mobile view

Change-Id: Icf162d34b1b3c566d46a9e98b0e3c736623e28c0
---
M includes/MobileContext.php
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/62/95562/1

diff --git a/includes/MobileContext.php b/includes/MobileContext.php
index 0e2d033..13c9710 100644
--- a/includes/MobileContext.php
+++ b/includes/MobileContext.php
@@ -283,6 +283,11 @@
                        $redirectUrl = 
SpecialMobileDiff::getMobileUrlFromDesktop();
                }
 
+               if ( $this->getRequest()->getVal( 'action' ) === 'history' ) {
+                       $redirectUrl = SpecialPage::getTitleFor( 'History', 
$this->getTitle() )->
+                               getLocalURL( $this->getRequest()->getValues() );
+               }
+
                if ( $redirectUrl ) {
                        $this->getOutput()->redirect( $redirectUrl );
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/95562
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icf162d34b1b3c566d46a9e98b0e3c736623e28c0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to