Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#1 | mobile_tools-1322930-1.patch | 734 bytes | jefftrnr |
Comments
Comment #1
jefftrnr CreditAttribution: jefftrnr commentedhere's a patch file for the change above