Commit a4bbb1b9 authored by drumm's avatar drumm

#50025 by doq. Use aliased urls for the destination parameter.

parent e48ec099
...@@ -208,7 +208,7 @@ function drupal_get_destination() { ...@@ -208,7 +208,7 @@ function drupal_get_destination() {
} }
else { else {
// Use $_REQUEST here to retrieve the original path. // Use $_REQUEST here to retrieve the original path.
$path = isset($_REQUEST['q']) ? $_REQUEST['q'] : ''; $path = isset($_REQUEST['q']) ? drupal_get_path_alias($_REQUEST['q']) : '';
$query = drupal_query_string_encode($_GET, array('q')); $query = drupal_query_string_encode($_GET, array('q'));
if ($query != '') { if ($query != '') {
$path .= '?'. $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