Jdlrobson has uploaded a new change for review.

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


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(-)


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

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: newchange
Gerrit-Change-Id: I1790f38880458588b9ccc5c2d5e0fa67ff00e386
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

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

Reply via email to