jenkins-bot has submitted this change and it was merged.

Change subject: Link history page for displayed article, not title from URL.
......................................................................


Link history page for displayed article, not title from URL.

Handles redirects.

Bug: 42660
Change-Id: Ie02c45744b636ba1c1cf715b90329819d94f29aa
---
M includes/skins/SkinMobile.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  MaxSem: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/skins/SkinMobile.php b/includes/skins/SkinMobile.php
index e92131f..5df8723 100644
--- a/includes/skins/SkinMobile.php
+++ b/includes/skins/SkinMobile.php
@@ -294,7 +294,7 @@
                        )->parse();
                        $timestamp = wfTimestamp( TS_UNIX, $timestamp );
                        $historyUrl = $inAlpha ? SpecialPage::getTitleFor( 
'MobileDiff', $revId )->getLocalUrl() :
-                               $ctx->getMobileUrl( wfExpandUrl( 
$this->getRequest()->appendQuery( 'action=history' ) ) );
+                               $ctx->getMobileUrl( $title->getFullURL( 
'action=history' ) );
                        $postBodyText = Html::element( 'a', array(
                                'id' => 'mw-mf-last-modified',
                                'data-timestamp' => $timestamp,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie02c45744b636ba1c1cf715b90329819d94f29aa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to