? 361018-domain-tokens.patch
? 414882-url-init.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 22:49:12 -0000
@@ -123,6 +123,13 @@ function domain_init() {
 
   // Set the site name to the domain-specific name.
   $conf['site_name'] = $_domain['sitename'];
+  
+  // Add a canonical link to the header.
+  $item = menu_get_item();
+  if ($item['path'] == 'node/%') {
+     $url = url('node/'. $item['href'], array('absolute' => TRUE, 'alias' => FALSE));
+    drupal_set_html_head('<link rel="canonical" href="' . $url . '" />');
+  }
 }
 
 /**
