Replace the front page redirection hotfix with an event subscriber in our helper module
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3540818. -->
Reported by: [phenaproxima](https://www.drupal.org/user/205645)
Related to !589
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>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.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>In recipes with the <code>Site</code> type, i.e. site templates, support this in the <code>extra</code> section:</p>
<pre>extra:<br> drupal_cms:<br> front_page: '/some/alias'</pre><p>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.</p>
<h3 id="summary-data-model-changes">Configuration changes</h3>
<p>We'll remove an ECA model from our default configuration. Existing sites will be unaffected.</p>
issue