? 361018-domain-tokens.patch
? 414882-url.patch
? 683400-i-dont-care.patch
? 925268-source-inactive.patch
? 926922-views-backport.patch
? 927808-bad-default.patch
? 934200-source.patch
? 934636-static-lookup.patch
? 938150-prefix.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.134.2.34
diff -u -p -r1.134.2.34 domain.module
--- domain.module	17 Oct 2010 02:30:37 -0000	1.134.2.34
+++ domain.module	20 Oct 2010 20:36:14 -0000
@@ -1273,7 +1273,11 @@ function domain_nodeapi(&$node, $op, $a3
       }
       break;
     case 'view':
-      // Search module casts both $a3 and $a4 as FALSE, not NULL.
+      // Add a canonical link to the header.
+      if (!$a3 && $a4) {
+        $url = url("node/$node->nid", array('absolute' => TRUE, 'alias' => FALSE));
+        drupal_set_html_head('<link rel="canonical" href="' . $url . '" />');
+      }      // Search module casts both $a3 and $a4 as FALSE, not NULL.
       // We check that to hide this data from search and other nodeapi
       // calls that are neither a teaser nor a page view.
       if ($a3 !== FALSE || $a4 !== FALSE) {
