Commit c3fcbcad authored by Gábor Hojtsy's avatar Gábor Hojtsy

#173274 by Desbeers: treat <front> as the empty path, when adding path...

#173274 by Desbeers: treat <front> as the empty path, when adding path prefixes, so we get the proper result
parent 817f9809
......@@ -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;
......
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