Problem/Motivation

Belgrade currently supports 404 route detection and template suggestions, but does not provide a dedicated, configurable optimized 404 experience out of the box. Projects end up implementing this repeatedly.

Since this must be solved at the theme layer, we should provide a theme setting that enables a minimal 404 page pattern and allows key values to be configured without code changes.

Proposed resolution

Add a new Belgrade theme setting (for example, optimized_404_enabled) that controls rendering of a minimal 404 page. When enabled, Belgrade should render a dedicated 404 template and attach a lightweight 404-specific library.

404 output (when setting is enabled)

  • Minimal shell with logo/header.
  • Brief 404 message.
  • Link to homepage.

Configurable theme settings

  • Enable/disable optimized 404 page.
  • Optional custom 404 image/logo source (theme asset path).

Issue fork belgrade-3588979

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

majmunbog created an issue. See original summary.

majmunbog’s picture

Status: Active » Needs review
sumi’s picture

Status: Needs review » Reviewed & tested by the community

Tested and can confirm all is working good.

majmunbog’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • majmunbog committed 99ee0cb8 on 3.x
    task: #3588979 Add a configurable theme setting for an optimized minimal...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.