Fix redirection between multisites when access is denied (error 403)

This commit is contained in:
Manuel Cillero 2017-07-26 22:30:48 +02:00
parent d1f15e39fd
commit 87c68e192c

View file

@ -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');