- Issue created by @ovilla
I'm using this module in a multilanguage site, where I need to use the language detection by URL method, configured with path prefix, the problem is that when I create new domains and I access them if I try to change the language nothing happens, that is, the language is not changed in the microsite. In the main site everything works as expected because the core language module gets the langcode of first element of the path, and this module also gets the microsite name from first element of the path, for example: if the domain of my site is example.org and I create a domain record named site1, if try to change the interface language to spanish, the final url would be:
The core's language module tries to get the langcode using "site1", as it doesn't match the available languages it returns null and the interface language doesn't change at all.
Since not everyone requires this feature, I propose the creation of a submodule that, when activated, will allow this module to work correctly with the language detection by URL method.
Active
2.0
Code