Index: multidomain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/multidomain/multidomain.module,v
retrieving revision 1.1.2.13
diff -u -r1.1.2.13 multidomain.module
--- multidomain.module	8 May 2007 16:07:01 -0000	1.1.2.13
+++ multidomain.module	15 May 2007 17:52:20 -0000
@@ -370,6 +370,9 @@
   $domains = variable_get('multidomain_sites', array());
   $protocol = ( $_SERVER['HTTPS'] ) ? 'https://' : 'http://' ;
   if ($domain = $domains[$protocol . $_SERVER['HTTP_HOST']]) {
+    // Determine if we are currently on the home page.
+    $front = drupal_is_front_page();
+
     // Set any variables specific to this domain.
     if(isset($domain['variables']) && is_array($domain['variables'])) {
       foreach($domain['variables'] as $name => $value) {
@@ -379,6 +382,12 @@
     if ($domain['init']) {
       drupal_eval($domain['init']);
     }
+
+    // If we are on the home page, reinitiate the $_GET['q'] value.
+    if ($front) {
+      unset($_GET['q']);
+      drupal_init_path();
+    }
   }
 }
 
