#78377: Use real path instead of alias in destination
parent
fcde99a4dd
commit
e5027541c4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue