Index: path_redirect.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/path_redirect/path_redirect.module,v retrieving revision 1.3.2.6 diff -u -F^function -r1.3.2.6 path_redirect.module --- path_redirect.module 2 May 2007 01:33:42 -0000 1.3.2.6 +++ path_redirect.module 14 Aug 2007 14:44:37 -0000 @@ -19,16 +19,19 @@ function path_redirect_help($section) { * Implementation of hook_init * * Early checking of URL requested. - * If a match is found, user is redirected using drupal_goto() + * If a match is found, user is redirected using drupal_goto(), unless + * redirect=no is specified in the query string. * */ function path_redirect_init() { - // check through the redirects - // see if this page is one of those - $path = db_escape_string($_GET['q']); - $r = db_fetch_object(db_query('SELECT redirect, query, fragment, type FROM {path_redirect} WHERE path = "%s"', $path)); - if ($r) { - drupal_goto($r->redirect, ($r->query ? $r->query: NULL), ($r->fragment ? $r->fragment : NULL), $r->type); + if ($_GET['redirect'] != 'no') { + // check through the redirects + // see if this page is one of those + $path = db_escape_string($_GET['q']); + $r = db_fetch_object(db_query('SELECT redirect, query, fragment, type FROM {path_redirect} WHERE path = "%s"', $path)); + if ($r) { + drupal_goto($r->redirect, ($r->query ? $r->query: NULL), ($r->fragment ? $r->fragment : NULL), $r->type); + } } }