summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2007-09-06 14:03:52 (GMT)
committerGábor Hojtsy2007-09-06 14:03:52 (GMT)
commitc3fcbcad679dc7621eb60fdeff67527f18caa539 (patch)
tree4402d2e2c0999411a35d4a9b0c1124b20e7cc962
parent817f9809145ad6bb09fbfbd7f1a4543095b8580c (diff)
#173274 by Desbeers: treat <front> as the empty path, when adding path prefixes, so we get the proper result
-rw-r--r--includes/language.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/language.inc b/includes/language.inc
index b5c56f7..acf4c46 100644
--- a/includes/language.inc
+++ b/includes/language.inc
@@ -130,7 +130,7 @@ function language_url_rewrite(&$path, &$options) {
$path = drupal_get_path_alias($path, $path_language->language);
$options['alias'] = TRUE;
}
- $path = empty($path) ? $path_language->prefix : $path_language->prefix .'/'. $path;
+ $path = (empty($path) || ($path == '<front>')) ? $path_language->prefix : $path_language->prefix .'/'. $path;
}
break;