Skip to content
Snippets Groups Projects

Issue #2953640: URL language detection with empty path prefix not working

Files
2
@@ -72,6 +72,11 @@ public function getLangcode(?Request $request = NULL) {
if ($negotiated_language) {
$langcode = $negotiated_language->getId();
}
// Handle empty path prefix:
if ($negotiated_language === FALSE && (($no_prefix_langcode = array_search('', $config['prefixes'])) !== FALSE)) {
$langcode = $no_prefix_langcode;
}
break;
case LanguageNegotiationUrl::CONFIG_DOMAIN:
Loading