Skip Fast404 for logged in users

Created on 16 November 2023, about 1 year ago
Updated 4 June 2024, 6 months ago

Problem/Motivation

The module allows replacing the native Drupal 404 page with a Fast 404 page. This helps a lot with consistency. For logged in users however, this causes things like the admin toolbar to not be displayed on 404 pages. It would be nice to allow the Fast 404 page only to be displayed for anonymous users so admins will have a better experience

Steps to reproduce

  • Enable the Fast 404 module and configure the fast404_not_found_exception setting
  • Login as an admin user
  • Visit a page that doesn't exists
  • Get confused about the missing admin toolbar

Proposed resolution

In addition to the fast404_not_found_exception setting, we could add a fast404_not_found_exception_anonymous_only setting to configure the behavior.

Remaining tasks

Write patch
Review
Commit

User interface changes

-

API changes

Add a fast404_not_found_exception_anonymous_only setting

Data model changes

-

โœจ Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands seanB Netherlands

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024