Problem
DomainPathAliasManager has a configurable language_method setting, but both the code fallback and the install config default to language_content (TYPE_CONTENT). The default should be language_url (TYPE_URL) to match core behavior.
Core's AliasManager::getAliasByPath() explicitly defaults to TYPE_URL with this rationale:
If no language is explicitly specified we default to the current URL language. If we used a language different from the one conveyed by the requested URL, we might end up being unable to check if there is a path alias matching the URL path.
Proposed fix
- Change the fallback default from
TYPE_CONTENTtoTYPE_URLin bothgetPathByAliasAndDomain()andgetAliasByPathAndDomain() - Change
domain_path.settings.ymlinstall default fromlanguage_contenttolanguage_url
Issue fork domain_path-3575983
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #4
mably commentedNot sure this is any better that what we currently have.