diff --git a/sites/all/modules/customerror/customerror.module b/sites/all/modules/customerror/customerror.module index 481dfed..5b75f45 100644 --- a/sites/all/modules/customerror/customerror.module +++ b/sites/all/modules/customerror/customerror.module @@ -196,7 +196,7 @@ function customerror_page() { case 403: $internal_path = substr(request_uri(), strlen(base_path())); if ($internal_path) { - $_REQUEST['destination'] = $internal_path; + $_REQUEST['destination'] = substr(request_uri(), 1); } else { $_REQUEST['destination'] = variable_get('site_frontpage', 'node');