HI,
I dug into the code and found pages that have paths rewritten are checked by bootstrap_path and found to not actually exist by the hook_boot function in Mobile_Tools. Since the bootstrap is seen before either module, I see not-found page instead.

In order to get around this, I replaced the call to bootstrap_path in the device_redirect function with

drupal_bootstrap(DRUPAL_BOOTSTRAP_LANGUAGE);
require_once './includes/path.inc';
if (empty($_GET['q'])) {
  $_GET['q'] = variable_get('site_frontpage', 'node');
}

The last if statement was needed for the frontpage.

Can anyone think of a better way to do this?

CommentFileSizeAuthor
#1 mobile_tools-1322930-1.patch734 bytesjefftrnr
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jefftrnr’s picture

FileSize
734 bytes

here's a patch file for the change above