Throw 404 error when the page can't be found

Created on 25 June 2025, 2 days ago

Problem/Motivation

If the config page has never been save, the controller will display "no page".
I think it would be better to return a 404 error instead.

Steps to reproduce

Proposed resolution

The controller could throw a NotFoundHttpException, Drupal will catch the exception and display the 404 eror page.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Production build 0.71.5 2024