Replace the front page redirection hotfix with an event subscriber in our helper module

Created on 11 August 2025, 6 days ago

Problem/Motivation

The starter recipe includes an ECA model to hotfix the fact that core doesn't allow you (yet) to set a path alias as the front page. The fact that this has to be done with an ECA model is a kludge, but it is not really needed now that we have a helper module.

Proposed resolution

In recipes with the Site type, i.e. site templates, support this in the extra section:

extra:
  drupal_cms:
    front_page: '/some/alias'

Add an event subscriber to the helper module which, if it detects this in an applied recipe, sets the front page to the proper system path for that alias.

Configuration changes

We'll remove an ECA model from our default configuration. Existing sites will be unaffected.

πŸ“Œ Task
Status

Active

Component

General

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024