--- mobile_tools.module 2011-10-26 17:12:46.000000000 -0700 +++ mobile_tools.module 2011-10-26 17:14:08.000000000 -0700 @@ -247,7 +247,11 @@ function mobile_tools_device_redirect($d if($pages != '') { //check if there is no exception in the redirect path (code comes from block.module) include_once './includes/bootstrap.inc'; - drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH); + drupal_bootstrap(DRUPAL_BOOTSTRAP_LANGUAGE); + require_once './includes/path.inc'; + if (empty($_GET['q'])) { + $_GET['q'] = variable_get('site_frontpage', 'node'); + } $path = drupal_get_path_alias($_GET['q']); // Compare with the internal and path alias (if any). $page_match = drupal_match_path($path, $pages);