Jdlrobson has submitted this change and it was merged.

Change subject: Bug 35233: Stop mobile site indexing in google by properly 
using a canonical url
......................................................................


Bug 35233: Stop mobile site indexing in google by properly using a canonical url

Example #1 of why HTML validation is such a positive thing.

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

Approvals:
  Jdlrobson: Verified; Looks good to me, approved



diff --git a/includes/skins/SkinMobile.php b/includes/skins/SkinMobile.php
index dd7d8ef..ac29479 100644
--- a/includes/skins/SkinMobile.php
+++ b/includes/skins/SkinMobile.php
@@ -32,7 +32,7 @@
                        );
                }
                $out->addHeadItem( 'canonical',
-                       Html::element( 'link', array( 'href' => 
$title->getCanonicalURL() ) )
+                       Html::element( 'link', array( 'href' => 
$title->getCanonicalURL(), 'rel' => 'canonical' ) )
                );
                $out->addHeadItem( 'viewport',
                        Html::element( 'meta', array( 'name' => 'viewport', 
'content' => 'initial-scale=1.0, user-scalable=yes' ) )

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1790f38880458588b9ccc5c2d5e0fa67ff00e386
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[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