- Issue created by @johnhanley
Contrary to the project description page, the module does not respect the current language, as defined on admin/config/regional/language/detection/url.
Follow the instructions on the project page and add the base_url replacement token to the output of a link. The langcode is not present in the outputted link path.
When examining the render function in BaseUrl.php at line 172, the $language variable is defined as:
global $language;
This is Drupal 7 syntax and is obsolete. The correct Drupal 8+ syntax is:
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
However, this change does not remedy the problem. The link creation code starting at line 210 needs further refinement.
Fully implement support of the inclusion of the langcode in the URL. This include respecting when the default langcode is not defined and left blank via admin/config/regional/language/detection/url.
N/A
N/A
N/A
Active
2.1
Code