Skip to content
Snippets Groups Projects
Unverified Commit eb1e8cc6 authored by Vijay Mani's avatar Vijay Mani
Browse files

fix: links in default language

parent 3f9874c7
Branches 1.x
No related merge requests found
Pipeline #458194 failed
......@@ -123,7 +123,7 @@ class AdvancedLanguageNegotiation extends LanguageNegotiationMethodBase implemen
$languages = array_flip(array_keys($this->languageManager->getLanguages()));
// Language can be passed as an option, or we go for current URL language.
if (!isset($options['language']) || ($options['language'] instanceof LanguageInterface && $options['language']->getId() == LanguageInterface::LANGCODE_NOT_SPECIFIED)) {
$language_url = $this->languageManager->getCurrentLanguage(LanguageInterface::TYPE_URL);
$language_url = $this->languageManager->getCurrentLanguage();
$options['language'] = $language_url;
}
// We allow only added languages here.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment