From a4bbb1b909512c72ecf2b119c093193ed01c4b10 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Mon, 21 Aug 2006 07:16:21 +0000 Subject: #50025 by doq. Use aliased urls for the destination parameter. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 957680056..865877df4 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -208,7 +208,7 @@ function drupal_get_destination() { } else { // 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')); if ($query != '') { $path .= '?'. $query; -- cgit v1.2.3