13.11.2025 | Lothar Ferreira Neumann

Set the homepage for anonymous users to login page

Access front page setting here: /admin/config/system/site-information

Set home page to user login
system.site.yml
page:
  front: /user/login

Issue:

The homepage for visitors of your system should be the user login page (/user/login). This might make sense for logged-in only platforms and similar projects.

Solution:

Add /user/login in the `system.site.yml` to manipulate the front page.