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

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?

#1 mobile_tools-1322930-1.patch734 bytesjefftrnr
Members fund testing for the Drupal project. Drupal Association Learn more


jefftrnr’s picture

734 bytes

here's a patch file for the change above