From 87c68e192c2f41ee216fe6ad2ec9efa482058df4 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 26 Jul 2017 22:30:48 +0200 Subject: [PATCH] Fix redirection between multisites when access is denied (error 403) --- sites/all/modules/customerror/customerror.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');