In file index.php
Change $moduleResult = $module->handleError( eZError::KERNEL_MOVED, 'kernel', array( 'new_location' => $objectHasMovedURI ) );
To:
$moduleResult = $module->handleError( eZError::KERNEL_MOVED, 'kernel', array(
'new_location' => $objectHasMovedURI,
'query' => $_SERVER['QUERY_STRING']
) );
In file kernel/error/view.php
Before header( "Location: " . $location );
Add this fix:
if (strlen($extraErrorParameters['query']) > 0) {
$location .= "?".$extraErrorParameters['query'];
}
header( "Location: " . $location );