Redirect anonymous to FE route

Created on 4 June 2024, 10 months ago
Updated 6 June 2024, 10 months ago

Problem/Motivation

Redirect traffic to FE site when
- Anonymous
- Validate certain routes as:

  private $excludeRoutes = [
    'name' => [
      'user.login',
      'user.login.http',
      'user.pass',
      'user.reset',
      'user.reset.login',
      'oauth2_token.token',
    ],
    // @todo Add JSON:API routes to exclude.
    'path' => [
      '/graphql?*',
      '/sites/default/files/*',
    ],
  ];

- Make redirect configurable

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jmolivas El Centro, CA

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

Comments & Activities

Production build 0.71.5 2024