Index: search_by_page.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/search_by_page/search_by_page.module,v
retrieving revision 1.1.2.43
diff -u -r1.1.2.43 search_by_page.module
--- search_by_page.module	31 Dec 2010 17:17:52 -0000	1.1.2.43
+++ search_by_page.module	28 Jan 2011 16:39:53 -0000
@@ -1410,13 +1410,14 @@
   // Let Search perform the actual search
   $stuff = do_search($keys, 'search_by_page', $join, $where, $args);
 
-  // Save global pager information and page title, because rendering
+  // Save global pager information, page title, etc. because rendering
   // can screw this up.
   $title = drupal_get_title();
   $tmp_parray = $pager_page_array[0];
   $tmp_ptotal = $pager_total[0];
   $tmp_itotal = $pager_total_items[0];
   $tmp_breadcrumb = drupal_get_breadcrumb();
+  $tmp_trail = menu_get_active_trail();
 
   // Create array of formatted results for Search
 
@@ -1459,12 +1460,13 @@
     $results[] = $res;
   }
 
-  // Reset page title and pager stuff
+  // Reset page title and pager stuff.
   drupal_set_title($title);
   $pager_page_array[0] = $tmp_parray;
   $pager_total[0] = $tmp_ptotal;
   $pager_total_items[0] = $tmp_itotal;
   drupal_set_breadcrumb($tmp_breadcrumb);
+  menu_set_active_trail($tmp_trail);
 
   return $results;
 }
