]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/showgroup.php
add canonical rel
[quix0rs-gnu-social.git] / actions / showgroup.php
index eba3191f6f2d1df22dc6e5198b4337c8c601abfe..10601e58b4e95192ebe1356dc8912e2114d6d00b 100644 (file)
@@ -233,4 +233,12 @@ class ShowgroupAction extends GroupAction
         $this->raw(common_markup_to_html($m));
         $this->elementEnd('div');
     }
+
+    function extraHead()
+    {
+        if ($this->page != 1) {
+            $this->element('link', array('rel' => 'canonical',
+                                         'href' => $this->group->homeUrl()));
+        }
+    }
 }