drupal-eca-recipe / eca_lib_0008
Redirect 403 to Login Page
3.1.2
2025-08-10 14:12 UTC
Requires
- drupal/core: >=11.2
- drupal/eca: ^3
README
ID: eca_lib_0008
This module redirects page requests, that would normaly respond with a "403 Access denied" page, to the login form. Very much like the module "Redirect 403 To Login Page" which can be replaced with this model.
Note: this model requires ECA 1.2, or you need to apply the patch from https://www.drupal.org/project/eca/issues/3332859 if you want to use it on ECA 1.1
Installation
## Import recipe
composer require drupal-eca-recipe/eca_lib_0008
# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/{{ rawid }}
# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0008
# Rebuilding caches is optional, sometimes required:
drush cr