Commit e5027541 authored by Steven Wittens's avatar Steven Wittens

#78377: Use real path instead of alias in destination

parent fcde99a4
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment