Active
Project:
Mobile Tools
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2011 at 00:19 UTC
Updated:
27 Oct 2011 at 00:21 UTC
Jump to comment: Most recent file
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 commentedhere's a patch file for the change above