Index: pagearray.module
===================================================================
--- pagearray.module
+++ pagearray.module
@@ -17,11 +17,22 @@
 
   $path = drupal_get_normal_path($path);
   $orig_q = $_GET['q'];
-  $_GET['q'] = $path;
+//  $_GET['q'] = $path;  // commented - does not work properly
+  
+  /*
+   * Modification by Gl@ss - make it work when more $_GET parameters are passed (like pagination)
+   */
+  $stripped_path = explode('?', $path);
+  $_GET['q'] = array_shift($stripped_path);
+  foreach ($stripped_path as $arg) {
+    $arg_pair = explode('=', $arg);
+    $_GET[$arg_pair[0]] = $arg_pair[1];
+  }
 
   _menu_append_contextual_items();
 
-  menu_set_active_item($path);
+  menu_set_active_item($_GET['q']);
 
   // Adpated from index.php.
   $return = menu_execute_active_handler();
