fix: #3636517 Home page not found when the default language is not English

Issue: https://www.drupal.org/i/3636517

Problem

The front page is the alias /home. The default content pins every alias to langcode: en, while core's default content importer moves each entity to the site language during a non-English install. The aliases stay English, /home does not resolve and the front page is a 404.

Proposed resolution

Remove the pinned langcode from the path items in 265 files under content/, so each alias follows its entity's language. Nothing else changes; an English install still gets English aliases.

Same fix as Horizon Aid !119 (#3629922), where a pt-pt install was tested: home 404 without the fix, 200 with it.

How to test

  1. Install Drupal CMS with the The Rightup template and French as the default language.
  2. Open / and the main menu links: no 404.
  3. Repeat in English: unchanged.

Remaining tasks

  • Test this project on a non-English install (not done yet; only Horizon Aid was tested).

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading
Loading