Problem/Motivation
Default content exports aliases with an explicit language, e.g. path: [{alias: /home, langcode: en}]. The core importer imports the entity in the site language (Importer::verifyNormalizedLanguage()), but the alias keeps langcode: en. On a site without English, these aliases never match: the front page (/home) and other pages return 404.
Steps to reproduce
- Install Drupal CMS in German with Haven (English removed at the end of the installer).
- Visit
/→ 404;path_aliasshows/homewithlangcode = en.
Proposed resolution
When the importer changes the entity language, move the entity's aliases to the same language – or templates should export aliases without a fixed langcode.
Additional information
Workaround in dcle (AliasLanguageNormalizer, also applied before import so Pathauto patterns built from a parent alias work).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3629564-after-front.png | 896.62 KB | chaitanyadessai |
| #4 | 3629564-before-front.png | 78.92 KB | chaitanyadessai |
Issue fork drupal-3629564
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 #4
chaitanyadessai commentedPlease review MR.