Update D8 version of this module to latest core devs

Created on 12 August 2016, over 8 years ago
Updated 29 January 2023, almost 2 years ago

Problem/Motivation

Currently, the D8 version does not work anymore. Two issues can be shown with the current code base of this module:
- it uses _content instead of _controller defaults key (see: https://www.drupal.org/node/2378809 )
- it loops over all the routes to find the front one, which is an heretic performance issue !

Proposed resolution

#2570207: Front Page is not empty - Drupal 8.0.x offers two different approach that are not perfect (on my humble opinion).
#4 : suggest a new route at URL /empty (which means I could not get a node called 'empty')
#21 : suggest to add an admin form, so the admin could choose himself a path name to an empty to set his front path to this. This gaves two configs (one in the module, one at admin/config/system/site-information) to do this simple thing.

The approach suggested in this issue is to :
1- find the route configured at admin/config/system/site-information (by default it is /node)
2- alter this route to point to our empty controller method
No extra config needed except activating this module. Works with any configuration setted at admin/config/system/site-information, just like it used to be in D7: the functionnality at it's simplest.

Issue is :
Bug: because the functionnality announced does not work as expected currently ( https://www.drupal.org/core/issue-category#bug )
Critical: because the module don't work, with no workaround currently

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France Dom.

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024