#78377: Use real path instead of alias in destination

5.x
Steven Wittens 2006-12-12 06:13:34 +00:00
parent fcde99a4dd
commit e5027541c4
1 changed files with 2 additions and 2 deletions

View File

@ -243,8 +243,8 @@ function drupal_get_destination() {
return 'destination='. urlencode($_REQUEST['destination']);
}
else {
// Use $_REQUEST here to retrieve the original path.
$path = isset($_REQUEST['q']) ? drupal_get_path_alias($_REQUEST['q']) : '';
// Use $_GET here to retrieve the original path in source form.
$path = isset($_GET['q']) ? $_GET['q'] : '';
$query = drupal_query_string_encode($_GET, array('q'));
if ($query != '') {
$path .= '?'. $query;