Skip to content
Snippets Groups Projects
Commit c3fcbcad authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment